Autoptimize removing GA content experiment code
-
To create a Google Analytics Content Experiment (A/B split test) a code snippet must be added to the header of your website. However, Autoptimize removes this code no matter how it’s added.
I tried adding to the header.php file directly, adding to header.php through functions.php (child theme), using the “insert header and footer” plugin, and using a plugin designed specifically for adding Content Experiment code. Only once Autoptimize was disabled did the snippet show up – when it was enabled the code was effectively erased. My Google Analytics tag works fine.
I’d like to continue using this plugin if possible, so could you please advise what can be done about this issue? Thanks.
- The topic ‘Autoptimize removing GA content experiment code’ is closed to new replies.