# AB testing for Shopware

**URL:** <https://forum.shopware.com/t/ab-testing-for-shopware/66443>\
**Category:** Shopware 5\
**Created:** [23. April 2020 um 01:54 UTC](https://forum.shopware.com/t/ab-testing-for-shopware/66443 "2020-04-23T01:54:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeanandDavidSuperF](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/deananddavidsuperf/32/14043_2.png) [@DeanandDavidSuperF](https://forum.shopware.com/u/DeanandDavidSuperF)\
**Post date:** [23. April 2020 um 01:54 UTC](https://forum.shopware.com/t/ab-testing-for-shopware/66443/1 "2020-04-23T01:54:18Z")

</div>

Hello All,

I want to ask if there is any possible way to enable AB testing for Shopware ?

we are using shopware 5.5.8.

&nbsp;

Thanks,

Regards.

&nbsp;

---

<div class="post-metadata">

**Author:** ![ShapeAndShift](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@ShapeAndShift](https://forum.shopware.com/u/ShapeAndShift)\
**Post date:** [23. April 2020 um 06:27 UTC](https://forum.shopware.com/t/ab-testing-for-shopware/66443/2 "2020-04-23T06:27:18Z")

</div>

You could use Google Optimize.

This article is in German, but maybe you can translate it&nbsp;[https://netgrade.de/google-optimize-shopware/](https://netgrade.de/google-optimize-shopware/)

[https://www.deepl.com/translator](https://www.deepl.com/translator)&nbsp;highly recommended for translations&nbsp; ![Angry-Face](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/1X/4d894c4dd47121f4ab1fba0317660ce0f6dbd4be.png "Angry-Face")

---

<div class="post-metadata">

**Author:** ![DeanandDavidSuperF](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/deananddavidsuperf/32/14043_2.png) [@DeanandDavidSuperF](https://forum.shopware.com/u/DeanandDavidSuperF)\
**Post date:** [25. April 2020 um 00:56 UTC](https://forum.shopware.com/t/ab-testing-for-shopware/66443/3 "2020-04-25T00:56:51Z")

</div>

Thank you so much that was awesome and very helpful.

we followed all the setup and everything worked fine as described clearly.

I just got one problem when trying to preview the first B variant I created.

I press on preview in Google optmize and got this error message:

![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/3/3eb4a6d6295a8f61ceefcf2d6c7befead81765ab.png)

&nbsp;

Althought we have added the code&nbsp;\*\*me.analytics (‚require‘, ‚GTM-XXXXXX‘);&nbsp;&nbsp;\*\*to&nbsp;u **niversal\_analytics.js&nbsp;**

**The only different thing is that our Optmize ID is with OPT-XXXXXX not GTM-XXXXXX**

so we added this line to our&nbsp;u **niversal\_analytics.js:**

**me.analytics (‚require‘, ‚OPT-XXXXXX‘);**

&nbsp;

**so do you know what can the problem here ?**

&nbsp;

**Thanks for your support.**

---

<div class="post-metadata">

**Author:** ![DeanandDavidSuperF](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/deananddavidsuperf/32/14043_2.png) [@DeanandDavidSuperF](https://forum.shopware.com/u/DeanandDavidSuperF)\
**Post date:** [7. Mai 2020 um 11:15 UTC](https://forum.shopware.com/t/ab-testing-for-shopware/66443/4 "2020-05-07T11:15:02Z")

</div>

Hello @[ShapeAndShift](https://forum.shopware.com/profile/34003/ShapeAndShift)

Do you have any suggestion for this problem here ?&nbsp;

Thanks in advance!

&nbsp;

&nbsp;
