NOTE: This article is applicable to our Classic Checkout solution only.
(2 min read)
When you use the Cleeng Checkout on a website with your own domain, you're required to tune your Google Analytics snippet to ensure you track your viewers correctly. This guide explains how to do so.
How to add support for cross-domain tracking?
Adding support for cross-domain tracking, Google requires information about a broadcaster's GA account in the Cleeng dashboard under, Company Profile and also a broadcaster has to add a piece of code to his page.
Note that these features are applicable with Cleeng Merchant/ Checkout setup.
First, let's update the Company Profile for GA support, here's how:
- Log in to your Broadcaster Dashboard.
- Click Admin & Tools > Company Profile.
- Make sure that your website URL value is correct (it is strictly connected with x-domain tracking).
- Please add your GA tracking ID.
Update your source code
To enable cross-domain tracking both sides need to be well prepared. After updating your information in the Company Profile page, you have to tweak your GA initialization code for x-domain support.
Here is an example of a GA initialization that contains an autoLinker module and cleeng.com domain:
ga('create', ‘UA-YOURGA_ID-X', 'auto', {'allowLinker': true});
ga('require', 'linker');
ga('linker:autoLink', ['cleeng.com'] );
Remember to change the example GA tracking ID from this snippet to yours.
In case of any troubleshooting please check this site which describes solutions for the most popular issues.More information about cross-domain tracking is available here.