How to implement the Generic Tag
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 tutorial.
The Tag Implementation Page supports two hosting methods:
AB Tasty Delegated (to know more about it please read our tag domain delegation presentation article)
Follow these steps to implement the Tag:
Select your domain
Specifying a domain 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 www.my-website.com/fr , then the domain you need to set here is "my-website.com".
Subdomain
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 "www.my-website.com," 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 our comprehensive article about tags.
Choose your hosting method
The generic tag comes in two versions: synchronous and asynchronous. We recommend synchronous implementation. For more information, refer to this tutorial.
This is the by default procedure.
For a step by step procedure, please refer to AB Tasty hosted tag implementation article
Best practices
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 performance center in the AB Tasty platform and read this article about perfomance guidelines.
Last updated
Was this helpful?