{"section":"faq","requestedLocale":"en","requestedSlug":"ab-testing-why-is-it-not-working-google-analytics","locale":"en","slug":"ab-testing-why-is-it-not-working-google-analytics","path":"docs/en/faq/storefront/ab-testing-why-is-it-not-working-google-analytics.md","branch":"main","content":"This usually happens because the Analytics script was not saved in the page template.\n\nTo fix it:\n\n1. Create a content placeholder in the template.\n2. On the page where A/B testing is running, create an HTML control and paste the script.\n\nA/B testing can then send data to Google Analytics.\n\nExamples of each step:\n\n**Control:**\n\n![](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/faq/storefront/ab-testing-why-is-it-not-working-google-analytics_1.png)\n\n**Script:**\n\n![](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/faq/storefront/ab-testing-why-is-it-not-working-google-analytics_2.png)\n\n**Template:**\n\n![](https://cdn.statically.io/gh/vtexdocs/help-center-content/refs/heads/main/docs/en/faq/storefront/ab-testing-why-is-it-not-working-google-analytics_3.png)"}