Site logo

Archived topic

Hook elements delete part of the code every time I save

6 replies · Started by Enrico on September 24, 2020

Viewing posts 1–7 of 7

Good afternoon,

I need to add the Google Ads code to analyse the Conversions. But every time I update the hook element the two HTML <script> and </script> elements are deleted.

What shall I do?

Thanks

<!-- Event snippet for Website traffic conversion page -->
<script>
gtag('event', 'conversion', {'send_to': '****});
</script>

Hi there,

That's strange. I'm unable to replicate this issue and don't remember seeing it from other users before:
https://www.screencast.com/t/6eMr9cpJs

Any chance you can disable all plugins except GP Premium to eliminate conflicts from other plugins first?

Let me know :)

I have tried to disable all plugins except GP Premium, but didn't work.

Hi there,

can you remove the HTML comment ie. <!– Event snippet for Website traffic conversion page –> and try saving again.

If that doesn't work then it looks like a possible security setting that is stopping Script tags from being used in the editor.

Hi David,

You were right. I discovered what was the problem. It was when I was logging in with an Administrator account. If we use a Super-Administrator account it doesn't give that problem. Don't ask me why but it works.

Thank you

Glad to be of help.

This archived topic is closed to new replies.