• Resolved MirkoE

    (@mirkoe)


    The Google Tag Assitant tells me:
    “Multiple installations of Google Tag Manager detected”.

    I deactivated your plugin and the warning went away. There was no GTM detected at all.So the 2 instances are comming from your plugin. I checked the sourcecode of the page and there are indeed 2 lines:

    <script async="" src="https://www.googletagmanager.com/gtm.js?id=GTM-N3NJRWM"></script>
    <script async="" src="//www.googletagmanager.com/gtm.js?id=GTM-N3NJRWM"></script>

    Is this correct?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    I checked your site and indeed your container code is added twice but the second container code seems to me independent from my plugin.

    Are you sure that deactivating my plugin removes the second code?
    What code placement option are you using? On your site, codeless should work without any issues on your frontend.

    Thread Starter MirkoE

    (@mirkoe)

    Hi Thomas,

    I’m using the custom container placement. Codeless still produces two instances of the container.

    Okay, found the Problem:
    your Plugin seems to place the container in the (Parent) Theme header.php. I was using a child theme with a header.php that was holding the changes for the custom placement as advised by your plugin. That seemed to cause the container being added twice. Now that I’ve removed the child-theme header.php I’ve only got one container left.

    I usually make changes to templates in a child-theme, since upgrading the theme could overwrite the changes in the templates. Does this mean that if I would need to make other changes to the themes header.php I would need to add the container manually? Maybe you could look into this?

    _Mirko

    Thread Starter MirkoE

    (@mirkoe)

    Thomas forget about the child-theme thing. It works with the Child Theme. I just had some code left from my manual placement of the container. Fixed that and now everything works as it should with the custom option of your plug in and the changes made in the header.php inside the child theme.

    Sorry for the trouble and thank you for your help.

    _Mirko

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Multiple installations of Google Tag Manager detected’ is closed to new replies.