Web Integration
Requirements
This setup assumes you have already setup your App Key on the Dashboard.
Integration Steps
User Tagging
You can tag users/devices from your SDK in one line of code.
The SDK looks after the details for the device, you just supply the tag key and
value:
- The tag name (key) is what you want to call it. In the example below "Plan-49"
is how you will see this in the Pointzi Dashboard.
- Pointzi supports tags of: string, numeric and datetime. In the example below,
the value for "Plan-49" is "Trial-Period".
| let key = "Plan-49";
let value = "Trial-Period";
window.Pointzi.tag.string(key, value);
|
| let key = "BidValue";
let value = 549;
window.Pointzi.tag.numeric(key, value);
|
| // Tagging using predefined StreetHawk tag.
let key = "sh_registered";
let value = new Date();
window.Pointzi.tag.datetime(key, value);
// Tagging using custom tag.
let key = "Birthday";
let value = new Date();
window.Pointzi.tag.datetime(key, value);
|
Increment Tag Value
| let key = "PageVisited";
window.Pointzi.tag.increment(key);
|