Problem with Google Tag Manager

Hello there, I’m having an issue with the implementation of GTM in the Pro Theme. I followed instructions on the forum on how to use the functions.php of the child theme to do this. But my Tag Assistant (Chrome plugin) gives following message:

If I check the source code, then I see that the GTM noscript is present, but not exactly after the tag.

Any suggestions?

Hello @debreesolutions,

Thanks for asking. :slight_smile:

I suggest you to use Insert Headers and Footers plugin to implement Google Tag manager. Here is the resource that can be used to download the plugin. I am also sharing tutorial link that you can take a look to setup Google tag manager using Header and Footer plugin.


Thanks.

I have no issues with placing the GTM in the header, it’s the second part that needs to be in the body that’s causing the problem. This plugin does not offer a solution for that…

Hi There,

Did you try to add the script to Cornerstone > JS?

Can you share the code you need to insert?

Thanks!

Hi Joao

I fixed it by changing the base.php file to insert the js (via functions.php) in the right place. I’ve put this changed php-file in my child theme.

Glad you were able to resolve it :slight_smile:

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