Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Title for public documentation: Sending Experify Events to Data Collectors / CDPs

...

Create a file experifyEventTracking.js and include it in your website after . Make sure that the experify.js script and will be loaded as well, together with potentially any other CDP-related scripts (such as e.g. Klaviyo's klaviyo.js or Segment's analytics.js) have been loaded.

The following code snippets and examples are to be added to your experifyEventTracking.js.

(We suggest adding your Experify event tracking to such a separate javascript file for easier maintainability, but ultimately it is up to you where you add the needed code, and strictly speaking, creating experifyEventTracking.js isn’t necessary.)

Initialize Experify Tracking

Initialize the global ExperifyApi object. This object must be initialized before any handlers (see below) are registered.

Code Block
languagejs
ExperifyApi = window["ExperifyApi"] || [];

...