Menu
Feedback
Start here

Frequently asked questions

Frequently asked questions
AB Testing: why is it not working? (Google Analytics)
Published on4/27/2017
Last updated on12/31/2019
1 min read

Usually, this situation happens because the store owner is not able to save the script generated by Analytics inside the Template.

To solve this problem, just follow the steps below:

  1. Create a contentPlaceHolder inside the Template.
  2. On the page on which AB Testing is being applied, create an HTML-type control and save the script.

This way, AB Testing will be successful.

See below the screens with examples of the steps:

Control Screen:

{"base64":"  ","img":{"width":300,"height":138,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":18375,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/faq/others/ab-testing-why-is-it-not-working-google-analytics_1.png"}}

Script Screen:

{"base64":"  ","img":{"width":300,"height":148,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":35615,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/faq/others/ab-testing-why-is-it-not-working-google-analytics_2.png"}}

Template Screen:

{"base64":"  ","img":{"width":300,"height":216,"type":"png","mime":"image/png","wUnits":"px","hUnits":"px","length":50895,"url":"https://raw.githubusercontent.com/vtexdocs/help-center-content/refs/heads/main/docs/en/faq/others/ab-testing-why-is-it-not-working-google-analytics_3.png"}}

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback