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:

  1. AB Tasty Delegated (to know more about it please read our tag domain delegation presentation article)

Follow these steps to implement the Tag:

1

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".

Good to know

You can't save a domain that is not valid. Common mistakes are including a slash (/) or the protocol (https://).

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.

Good to know

  • Cookie Domain Restriction: If you apply subdomain restrictions due to multiple AB Tasty accounts across different subdomains, ensure your cookie domain settings are updated accordingly.

  • Multiple Domains: For business purposes requiring more than one domain per account, contact your usual AB Tasty representative to discuss your needs and request additional domains.

2

Choose your hosting method

Good to know

You can switch methods anytime before clicking “I’m done.”

  • No data is lost; your settings are preserved.

  • Changing a delegated subdomain restarts the delegation flow.

  • Switching from Delegated to Hosted requires a confirmation.

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

3

Check your implementation

Implementation verification is handled automatically.

Your tag will be refreshed upon validation.\

Good to know:

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.

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?