Ninetailed Web Device Mode Integration Beta
2 minute read
RudderStack recommends sending events to Ninetailed in device mode over the cloud mode.
After you have successfully instrumented Ninetailed as a destination in RudderStack, follow this guide to correctly send your events to Ninetailed in device mode.
Find the open source transformer code for this destination in the GitHub repository.
In web device mode, RudderStack uses the native Ninetailed SDK to send the events.
As mentioned in the Setup Guide, you need to install the Ninetailed SDK as an npm package before sending the events.
Identify
You can use the identify call to send a identify event to Ninetailed.
A sample identify call is as shown:
rudderanalytics.identify("12345", {
firstname: "Alex",
city: "New Orleans",
country: "USA",
phone: "8005550100",
email: "alex@example.com"
})Supported mappings
RudderStack maps the following properties to the corresponding Ninetailed fields:
| RudderStack property | Ninetailed property | Data type |
|---|---|---|
userId | userId | String |
traits | traits | Object |
Track
You can use the track API to send a track event to Ninetailed.
A sample track call is as shown:
rudderanalytics.track("Product Reviewed", {
review_id: "86ac1cd43",
product_id: "9578257311",
rating: 3.0,
review_body: "Good product."
});Supported mappings
RudderStack maps the following properties to the corresponding Ninetailed fields:
| RudderStack property | Ninetailed property | Data type |
|---|---|---|
eventRequired | event | String |
properties | properties | Object |
Page
You can use the page call to send a page event to Ninetailed.
A sample page call is shown below:
rudderanalytics.page();Supported mappings
RudderStack maps the following properties to the corresponding Ninetailed fields:
| RudderStack property | Ninetailed property | Data type |
|---|---|---|
properties | properties | Object |