How to add Gamitee to your website - with transaction and item tracking
๐Ÿ“‘

How to add Gamitee to your website - with transaction and item tracking

How to add Gamitee to your website

All you have to do is add the following script tag to the Body Tag (preferably at the bottom)

  • If your website supports different languages, and you want the Gamitee tool to be available in those languages, Gamitee needs to be embedded with a separate script for each language. Click below for the appropriate language script.
  • Code needs to be added to all pages on the site, including the Homepage.
  • Please note: The Gamitee tool will only appear on the subdomains in which it is embedded. If you only want the Gamitee tool on specific subdomains, please only add us there. As long as you remember to add us to the Homepage!
โš ๏ธ

We advise that you donโ€™t add the code to pages where users might write PIIs, like check-out pages, forms etc.

Select which language to deploy

Gamitee deployment scripts

๐ŸŒ
Arabic
Catalan
๐Ÿ‡จ๐Ÿ‡ณ
Chinese Simplified
๐Ÿ‡จ๐Ÿ‡ฟ
Czech (Czech Republic)
๐Ÿ‡ฉ๐Ÿ‡ฐ
Danish (Denmark)
๐Ÿ‡ณ๐Ÿ‡ฑ
Dutch
๐Ÿ‡ฌ๐Ÿ‡ง
English
๐Ÿ‡ซ๐Ÿ‡ฎ
Finnish (Finland)
๐Ÿ‡ซ๐Ÿ‡ท
French
๐Ÿ‡ฉ๐Ÿ‡ช
German
๐Ÿ‡จ๐Ÿ‡ญ
German (Switzerland)
๐Ÿ‡ฎ๐Ÿ‡ฑ
Hebrew
๐Ÿ‡ฎ๐Ÿ‡ฑ
Hebrew - Fashion
๐Ÿ‡ฎ๐Ÿ‡น
Italian (Italy)
๐Ÿ‡ฏ๐Ÿ‡ต
Japanese (Japan)
๐Ÿ‡ฐ๐Ÿ‡ท
Korean (Korea)
๐Ÿ‡ณ๐Ÿ‡ด
Norwegian
๐Ÿ‡ต๐Ÿ‡ฑ
Polish (Poland)
๐Ÿ‡ต๐Ÿ‡น
Portuguese (Portugal)
๐Ÿ‡ท๐Ÿ‡ด
Romanian
๐Ÿ‡ท๐Ÿ‡บ
Russian (Russia)
๐Ÿ‡ช๐Ÿ‡ธ
Spanish (Spain)
๐Ÿ‡ธ๐Ÿ‡ช
Swedish (Sweden)
๐Ÿ‡บ๐Ÿ‡ฆ
Ukrainian (Ukraine)

Adding our tracking code

If you have opted for enabling transaction tracking, you will also have to add our tracking code.

Add the following script to the โ€œthank you for your purchaseโ€ page, or any other page that users inevitably see after purchasing, so we can track and report to you which session ended with a purchase:

<script>
var transactionId = '{{order_id}}';
var value = '{{VALUE}}';
var productId = '{{product_id}}';

const analyticsData = JSON.parse(localStorage.getItem('gamitee-analytics-data'));
if (analyticsData) {
    const req = new XMLHttpRequest();
    req.open('POST', 'https://analytics.gamitee.io/report-transaction');
    req.setRequestHeader('Content-Type', 'application/json');
    req.send(JSON.stringify({
        analyticsData: analyticsData,
        transactionId: transactionId,
        value: value,
	productId: productId
    }));
}
</script>

In the first two lines replace the brackets with the transaction ID, the value and the product ID accordingly. For instance:

var transactionId = '1234';
var value = 48.50;
var productId = 'Az8526858',

Enabling our service

After the deployment of the code, contact your CSM to enable the service.

โš ๏ธ

After adding the code users still wonโ€™t be able to see our service, as it is disabled by default by us.

While the service is live but disabled we will run a few last tests to make sure that everything works perfectly and we will notify you before enabling the service on our end.

Questions?

Want to contact our customer success team?

We get it, people need people

Feel free to contact your CSM, or email us and weโ€™ll get back to you ASAP: team@gamitee.com