How to implement the Generic Tag
Last updated
Was this helpful?
Last updated
Was this helpful?
To use AB Tasty on your website, you need to install our tag on your website. The generic tag will allow you to apply the JavaScript layer for your page modifications. For more information about tags, please refer to this .
The supports two hosting methods:
(to know more about it please read our )
Follow these steps to implement the Tag:
Specifying a n for your account is mandatory. We recommend to manage one account per domain for performance reasons.
Domain : Your domain is everything that goes before the first slash (the path) and after the potential subdomains. Hence, if you have implemented your tag on , then the domain you need to set here is "my-website.com".
When implementing tags, it's possible to restrict their execution to specific subdomains. This ensures that tags will only function on designated subdomains and not on others.
Subdomain Restriction Examples
Root Domain Execution: If you set the tag to "," it will only execute on the root domain.
Specific Subdomain Execution: Setting the tag to "eshop.my-website.com" will restrict its execution to the "eshop" subdomain.
Warning
Execution Behavior
If a tag is implemented on a domain not listed, it will not execute on any unlisted domains or excluded subdomains. This ensures no unintended effects on those domains.
For further details, refer to .
These are our recommendations for a good implementation:
Prefer the synchronous tag version
Prefer a direct implementation vs a custom implementation (with a TMS for exemple)
The tag should be placed in your website’s </head> tag, this way you will be sure that your modifications will be applied immediately, before the website loads. This will avoid the flickering effect and will offer an optimal user experience
To follow your tag performance though time, you can access the in the AB Tasty platform and read this article about .