Issue with Plugin: DuracellTomi's Google Tag Manager for WordPress
-
I’m having an issue getting Autoptimize to play nicely with DuracellTomi’s Google Tag Manager for WordPress.
When Autoptimize is enabled, that plugin doesn’t work properly.
I found one js file and added it as an exclusion but it doesn’t look like it’s enough. There are other bits of code that are still not rendering (with Autoptimize enabled) and I’m not sure how to prevent your plugin from minifying them.
For example:
<script type=”text/javascript”>
var google_tag_params = {“visitorLoginState”:”logged-in”,”visitorType”:”administrator”,”pagePostType”:”frontpage”,”pagePostType2″:”single-page”,”pagePostAuthor”:”XYS”};
dataLayer.push({“visitorLoginState”:”logged-in”,”visitorType”:”administrator”,”pagePostType”:”frontpage”,”pagePostType2″:”single-page”,”pagePostAuthor”:”John Smith”,”google_tag_params”:window.google_tag_params});
</script>Since this is a plugin that is rendering the js, I cannot simply add the noptimize tag.
Any suggestions?
- The topic ‘Issue with Plugin: DuracellTomi's Google Tag Manager for WordPress’ is closed to new replies.