Google Analytics Extension - Changing > to >

Trying to add an opt-out function per Google to my GA Extension. There is a line that should read:
if (document.cookie.indexOf(disableStr + ‘=true’) > -1) { window[disableStr] = true; }

… however every time I hit “Update” from the editor, it replaces the greater than symbol with “& g t ;” (spaces added to prevent translation). While that would be fine for text, it doesn’t work in Javascript.

Thanks in advance.

Hello There,

Thanks for writing in! Please be advised that there is an on going issue with the Google Analytics extension. I would recommend that you disable this plugin and use “Insert Headers and Footers” plugin (https://wordpress.org/plugins/insert-headers-and-footers/) instead.

Hope this helps.

So a “supported extension” to a “premium” theme isn’t “recommended”… :roll_eyes:

Hi There @kkellogg

Until we fix an ongoing bug on our extension, we recommend to use an alternative plugin. In case if you don’t want to use a plugin, please follow this thread (https://theme.co/apex/forum/t/pro-theme-google-tag-manager/3415/8) to implement your code manually.

Thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.