Help Products Tickets Cross Domain Tracking

Cross Domain Tracking

Mitchell Tolhuisen
Updated 2 years ago

Cross Domain tracking i.c.m. iFrame Shop.
Cross domain tracking makes it possible to identify persons between 2 websites as 1 same person. This allows online marketing campaigns to be measured better.

For Cross Domain tracking we use the Analytics Property which is also used for the website. The integration order on the website should be:

  1. Cross domain tracking script
  2. iFrame
    The Cross domain script should be placed above the iFrame in the page.

Cross domain script
Place the script below on your website, above the iframe

<!-- Cross domain checking for the ticket sale cms--> <script type="text/javascript"> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','','ga'); ga('create', 'ANALYTICS PROPERTY ID HIER', 'auto'); ga(function (tracker) { var clientId = tracker.get('clientId'); var frameWindow = document.getElementById('cm-ticketshop').contentWindow; window.addEventListener('message', function (event) { if (event.origin === "" && === "shop.loaded") { frameWindow.postMessage({ clientId: clientId }, '*'); } }); }); </script> <!-- Cross domain checking for the ticket sale cms-->

IFrame Code
Place the iframe code below on the place you would like your ticketshop to be visible

<iframe id="cm-ticketshop" src=""></iframe>


cm-ticketshop: The id to be given to the iFrame element. This will link the shop to the Cross Domain tracking script. This needs to be changed in two places.
ANALYTICS PROPERTY ID: The Property ID of your analytics.
webshop customer: The url where of the ticketshop, to be found in the CM Tickets dashboard at Shoplink

In order to fully configure the integration on CM Tickets side, the URL of the website on which the ticketshop is integrated must be passed on to CM Tickets. E.g.

Is this region a better fit for you?