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

    (@duracelltomi)

    Google Tag Manager is not just about placing the container code into the header.php file.

    If you need advanced settings, you need to utilize the so called dataLayer.

    My plugin can help you to add many useful stuff into this dataLayer. For example you can store the current weather data into GA or have enhanced ecommerce in your webshop.

    I am not saying that everyone needs my plugin.
    It can happen that you don’t.

    That depends on what you want to achieve with your site.

    Cheers,
    Thomas

    Thread Starter vadim-v

    (@vadim-v)

    Thanks!

    But the problem is that after the update theme, my code is erased?

    <?php if ( function_exists( 'gtm4wp_the_gtm_tag' ) ) { gtm4wp_the_gtm_tag(); } ?>

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Currently yes, but a contributor already pointed me to a solution which makes it possible to add the container code to the right place without additional coding.

    Alternatively the “footer” option seems to me working as well, even Google Tag Assistant is not alerting for this kind of code placement anymore.

    Thread Starter vadim-v

    (@vadim-v)

    Thanks!

    Hi Thomas,

    How does the solution, where you refer to, work?

    a contributor already pointed me to a solution which makes it possible to add the container code to the right place without additional coding

    Or do you mean it will be in your plugin soon?

    Cheers,

    Ricardo

    Plugin Author Thomas Geiger

    (@duracelltomi)

    Hi,

    In the recent stable version there is an experimental option for code placement called “codeless”. Depending on your theme’s code, this could work for you to add the GTM container code to the right place without the need to alter your template’s header.php file each time you update your theme.

    There could be cases where this option does not work so you should check your site with Google Tag Assistant in Chrome to see whether the GTM container code is being placed correctly.

    Thomas

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Why do I need a plugin (DuracellTomi’s)?’ is closed to new replies.