• Resolved scottclose

    (@scottclose)


    Where do we put the code for Google Tag Manager or Google Analytics Code? When using the homepage layout- with the custom nav menus etc, as enabled by the theme options pages, the tracking code registers completely 0. Nil.

    After which body (tag) or head (analytics) element- in which theme *.php file- is this code intended to be placed for use on the featured homepage?

    Help!!! I’m getting really far behind on my tracking.

Viewing 3 replies - 1 through 3 (of 3 total)
  • you could add it on the header.php file

    Thread Starter scottclose

    (@scottclose)

    Thanks- this doesn’t help though.

    Placing the UA code in the header.php works for all ‘non featured’ pages, but does not trigger when this theme is configured to use the ‘featured homepage’…. For instance, there are three ‘header’ pages for this theme: a header.php, header-page.php, and a header-featured.php… I’ve tried placing the UA code before the closing </head> in each of them and no luck.

    The Google Tag code is supposed to be placed ‘immediately after the opening <body> tag’ (says google), but this still doesn’t work…. the Tag code doesn’t register any hits on the featured homepage (even though I’ve built the tags to register url events to include the ‘#’ symbol, which works on all other sites I’ve used). There are several pages to try, including home.php, featured-content.php, and front-page.php.

    The featured homepage certainly has unique functionality, but isn’t playing nice with UA… sure that the solution is obvious but just seem to be missing it?

    Thread Starter scottclose

    (@scottclose)

    Ah man. Complete oversight- all is fine adding it once into header-featured.php as cucubura (and thousands of other bloggers+websites) suggested.

    My mistake = using the same browser to test while logged in to wordpress, and having GA set to *not* register the administrator.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Where to put Google Tag Manager / Google Analytics Code?’ is closed to new replies.