![]() jQuery) that you wish to use in Optimize experiments. If you’re utilizing a custom dataLayer and/or other JavaScript as part of running tests, Google recommends the following order to ensure everything functions as you expect: You’re now ready to create an experiment in Google Optimize and on your way to becoming a conversion optimization expert :). Give it a few minutes to propagate if you don’t see any data right away. Once it’s live, open up a website URL that is included as part of your experiment and then go to your experiment detail page and you should see active users: When you publish your new test then Optimize will likely give you a validation message that everything is good or if there are errors detected. Step 4: Verify Google Optimize is WorkingĬreate a new test in Google Optimize (it can be an A/A test where your variation does not have any changes) to verify it’s working. The reason is you need to ensure the page flickering snippet always fires BEFORE your actual Google Optimize plugin. If during step 2 you had to use option b to implement the Optimize plugin then you should also have the page flickering snippet added right above the Google Analytics tracking code. Set a tag sequence where Google Optimize fires AFTER this page flicker snippet tag.Change the “GTM-” to be your Google Tag Manager Container ID instead of your Google Optimize ID as shown below.Create New Tag > Custom HTML Tag Type > Copy the page flicker snippet from Google Optimize into the custom HTML section.Option b) Add Page Flickering Snippet via GTMĪ safe way to implement the page flickering snippet is via Google Tag Manager. If you have full page cache or other caching mechanisms in place then this might not appear until cache is cleared.While not mandatory, this is better practice to help catch potential bugs when testing on a non-production instance. If you’re not a lone wolf and you have a team, agency, or someone else who manages your codebase then consider having them commit this change for you (inserting at top of ).If you’re a lone wolf and editing code in the admin is the norm then you should be fine.System > Configuration > General > DesignĬontent > Design > Configuration > Select Your Theme/Store > HTML Head: Within Google Optimize, you need to copy your page flickering snippet in step 2 of setup:Īnd then paste this into your HTML Head scripts configuration setting. This is a recommended step to help minimize “page flickering” that you might see when testing page variations. This code also helps ensure that users on slow connections have a better experience by only showing experiment variants when the Optimize container loads within the set timeout (4 seconds).Īgain you have a few options to implement this. Step 3: Implement Page Flickering Snippet This needs to be there on every page just like your GA script. If you are using the native Google Analytics pageview tracking then this will require a small change to your tracking script which will require a small code deployment.Īll you need to do is add your Optimize plugin to your GA snippet shown here: Once that is all set then you can set your trigger of All Pages and this step is complete! Option b: Modify your Google Analytics tracking script When assigned this means your Google Optimize tag will fire right after your Google Analytics tag. Custom tag sequencing – Setup tag: this should be your sitewide Google Analytics pageview tag. ![]() Set tag firing priority: this will differ based on your own GTM account but basically the higher the # the earlier this tag fires in order of all other GTM tags (I usually keep this pretty high!).Your Google Analytics variable settings.You’ll then need to configure your tag to include the following: If you have Google Tag Manager implemented for your Google Analytics pageview tracking then go to Google Tag Manager > Tags > Create New Tag > Google Optimize Tag You have two options to implement this: Option a) Via Google Tag Manager In your Optimize setup you will be asked to implement the Optimize plugin (shown below in red). Step 2: Implement the Google Optimize Plugin Link your new container to your Google Analytics property.I’m a big fan of the free version and actively use it on many existing Magento sites. There is also a 360 enterprise version that unlocks additional features. If you aren’t familiar with Google Optimize, it as the free a/b testing tool from Google that is an alternative to Optimizely, Monetate, VWO, among others. This guide shows how to implement Google Optimize on both Magento 1 and Magento 2 – in minutes.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |