JavaScript

Getting Started

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.

The API

You can now use this WRITE_KEY and ENDPOINT with our JavaScript Library.

pageJavaScript API

FAQ

Why aren't my events showing up?

The most likely problem is that you are not initing the script with the correct WRITE_KEY.

Does Fanplayr 360 use third-party cookies?

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.

Last updated