Google Tag Manager

Community Forums Forums General Discussion Google Tag Manager

This topic is: not resolved

This topic contains 1 reply, has 2 voices, and was last updated by  nutsandbolts 3 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #105126

    osalcedo
    Member
    Post count: 3

    Does anyone have any idea how to get Google Tag Manager to work properly in a genesis theme??
    No matter what I do, it simply won’t work.
    Google Webmaster Tools keeps returning the following error… “The Google Tag Manager snippet on your site is in the wrong location.”
    I’ve tried several plugins after trying the following code snippet in a functions.php file…

    add_action(‘genesis_before’, ‘google_tag_manager’);
    function google_tag_manager() { ?>
    <!– Google Tag Manager –>
    PASTE GOOGLE CODE MANAGER CODE HERE
    <!– End Google Tag Manager –>
    <?php
    }

    Any help would be greatly appreciated :)

    #105233

    nutsandbolts
    Moderator
    Post count: 3113

    Hmm, the snippet you posted should work, assuming you’re pasting the tag manager code in the middle where it asks for it.

    Who is your host? Are you running any kind of caching plugin and/or Cloudflare on the site? Using a CDN? Any of those may prevent WMT from finding the tag manager code.


    Andrea Whitmer, Owner, Nuts and Bolts Media
    I provide dev and training services for web designers • Find me on Twitter and Google+

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.