The code snippet you need to insert into your website’s HTML is available in your Emarsys Marketing Platform account. To display it, go to Admin > Data Sources > Web Behavior and click Show tracking code. The code you will see already contains your Merchant ID, so all you need to do is paste it into your website’s HTML.
Make sure to add our tracking code to all pages on your website, immediately before the
gohas to be issued on all the pages of your website only once, immediately before the
Check if it works
To see if the tracking code works properly on your website, do the following:
- In your browser, open a page on your website.
- Open another tab in your browser, log in to your Emarsys account, go to Admin > Data Sources > Web Behavior and click Live Events in the upper right-hand corner. This will open the Live Events page.
- Select my visit in the second drop-down.
- You should see an event box containing a cookie ID, a UTC timestamp and the referring URL.