JavaScript
Last updated
Last updated
One of the main ways of getting data into Fanplayr 360 may be through integration with your online store, using Javascript tracking.
To add a new JavaScript integration:
Go to Integrations / Catalog / Web, App and Other.
Click on the JavaScript integration.
Under Sources, click Add on the Track website event item.
Add a name to your Source integration. This is how you will reference it throughout the Fanplayr 360 system.
Click Save.
A Write Key and Endpoint will now be generated and displayed. You will use these in the instructions below, referenced as WRITE_KEY and ENDPOINT.
Don't forget to enable this integration once you are ready to use it with the switch at the top right of the page.
You can now use this WRITE_KEY and ENDPOINT with our JavaScript Library.
JavaScript APIThe most likely problem is that you are not init
ing the script with the correct WRITE_KEY
.
Fanplayr 360 does not use any 3rd party cookies by default. We do use localStorage
to keep track of the users current session, to collect events into a useful series.
We do suggest you use another system, for example our PrivacyID to better track users across time, especially when users are not required to identify themselves to your site.