Append WiFi data
Store WIFI Interaction history as you send contact data to us

Overview

Airship can store WIFI interaction history for each contact.
Having WIFI data attached to contacts is useful to measure and target recent or lapsed visitors based on their last visit.

Storing WIFI interactions

To store WIFI interactions, simply append a wifi_interactions object to your contact as you send it to us.
Value
Notes
datetime
The date / time of the WIFI interaction Required field
unit_id
The unit_id representing the physical location for which this WIFI interaction relates Required field
type
detected - This interaction type should be used when a user's device passively connects to the WiFi hotspot.
connected - This interaction type should be used once a user proactively views your captive portal. authenticated - This interaction type should be used once a user has provided the information required by the captive portal to connect to the Internet via your WiFi service. unknown - If your platform doesn't support the above connection types, use the unknown type Required field
hotspot_name
Text description of where the connection was made (i.e. Upstairs Bar)
Optional
mac_address
Unique device reference Optional
device_mime_type
Text description for the source of the WIFI interaction Optional

Example Payload

1
{
2
"account_id": 3,
3
"email": "[email protected]",
4
//...etc...
5
6
"wifi_interactions" :[
7
{
8
"datetime":"2022-01-01 12:00:00",
9
"unit_id": "4",
10
"type": "authenticated",
11
"hotspot_name": "Bar 01",
12
"mac_address": "01:A1:C1:11:C1:11",
13
"device_mime_type": "Airship Splash page"
14
}
15
]
16
}
Copied!