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 extension. Once 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.
Using the Console
Follow the steps below to check if your tag is installed on your website, using the console:
- Access your website and press the F12 key or right-click and select Inspect.
- Open the Console tab.
- 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:
If the tag is not installed on your website, the console will return an error.
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:
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:
- From any page of your website, press the [Ctrl+U] keys or right-click and select Inspect.
- Open the Elements tab.
-
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.
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=/;";
document.cookie="abTastyDebug=true;path=/;expires=Thu, 01 Jan 1970 00:00:00 GMT;";
If everything is correct
No specific log will be displayed. The tag will log its usual information and everything will run as expected.
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.
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.