How-to QA the Generic Tag

You can check if the AB Tasty tag (generic tag) is installed on your website by using one of the following methods. Ti implement the Generic tag, refer to How to implement the Generic tag.

Using the AB Tasty Chrome extension

In your Chrome browser, you can install and use the AB Tasty Chrome extensionOnce installed (see our specific article about the extension), the AB Tasty plugin icon appears in your toolbar. If you click the AB Tasty plugin icon from any page of your website, information about whether the tag is installed or not will be displayed. 

How_to_Check_ABTasty_Tag_Is_Installed_02.pngHow_to_Check_ABTasty_Tag_Is_Installed_01.png

Using the Console

Follow the steps below to check if your tag is installed on your website, using the console:

  1. Access your website and press the F12 key or right-click and select Inspect.
  2. Open the Console tab.
  3. Search for the “ABTasty” character string in the console.

If the tag is installed on your website, you should be able to see this line:

How_to_Check_ABTasty_Tag_Is_Installed_03.png

If the tag is not installed on your website, the console will return an error.

How_to_Check_ABTasty_Tag_Is_Installed_04.png

You can also enter the “ABTasty” character string in the Network tab.
If the tag is installed on your website, you should be able to see the following lines:

How_to_Check_ABTasty_Tag_Is_Installed_05.png

If the tag is not installed on your website, the tab will remain empty.

Using the Source Code

Follow the steps below to check whether your tag is installed on your website using the source code:

  1. From any page of your website, press the [Ctrl+U] keys or right-click and select Inspect.
  2. Open the Elements tab.
  3. From the search bar or by pressing the [CTRL+F] keys, search for try.abtasty character string.
    Note: The tag will always be written in this format.

If the tag is not installed on your website, the search will return no results.How_to_Check_ABTasty_Tag_Is_Installed_06.png

Verifying your domain implementation

A wrong or missing domain in the account settings can have an impact on the behavior of the tag on the website, hence impacting the campaign execution and data collection.

The tag will provide feedback about potential issues directly through its debug module.

First, you need to activate the debug mode of your tag by creating the needed cookie. The easiest way to do that is to type the following command in your browser's console when you are on your website:

document.cookie="abTastyDebug=true;path=/;";
This will create a cookie named "abTastyDebug" with a value of "true". 
At the end of the QA, you can safely remove this cookie manually or by typing the following command:
document.cookie="abTastyDebug=true;path=/;expires=Thu, 01 Jan 1970 00:00:00 GMT;";
Once the debug mode is active, the tag will start logging everything that happens regarding your campaigns, trackers and settings. This might seem overwhelming depending on the amount of campaigns you have, however, the information you are looking for about the domain restriction will always be displayed at the very beginning of the AB Tasty logs. You can scroll up until the very beginning of it.

If everything is correct

No specific log will be displayed. The tag will log its usual information and everything will run as expected.

image-20231204-164106.png

If at least one domain is set, but incorrect

The tag will specify that the current domain it is operating on does not match its configuration. However, it will continue its regular execution without any other impact.

This probably means that either you set the wrong domain (check the spelling) or you forgot to include one or all subdomains.

For example, if you have put "www.mywebsite.com", all subdomains will be excluded. Put "mywebsite.com" if you want them all to be included.

Also, if you have put "eshop.mywebsite.com", only "mywebsite.com" and "eshop.mywebsite.com" will be considered valid domains for the tag to execute.

Please refer to the matrix above to adjust your settings.

If no domain has been set

The tag will throw an error saying that it has stopped. No campaign will be displayed to anyone and no data will be collected. You must fix your configuration in your AB Tasty account immediately and refresh your tag.

image-20231204-163459.png

We encourage you, as part of the QA, to check all your domains (including subdomains) on which your tag is implemented. 

Note that, by default, the abTastyDebug cookie will be set on the root domain where you have entered the command line. If you don't see the debug logs, make sure the cookie exists and repeat the cookie insertion.

Was this article helpful?

/