Support » Plugin: Google Analytics » GA Script Not added to page

  • Resolved FirstRulez


    I have inherited an old site which uses a very heavily customised WordPress template. Unfortunately for some reason when adding your plugin the GA code is not being added to all of the pages within the site as expected and I suspect this is due to the customisation of the WP templates removing a reference which is required to make this work.

    Can you advise which template file references need to be in place to allow your plugin to work?

    Thank you

Viewing 1 replies (of 1 total)
  • In case anyone has this problem again I managed to track the issue down.

    The templates within our site had been edited and did not use:
    <?php get_header(); ?>
    <?php get_footer(); ?>

    Which resulted in the header.php and footer.php in the template not being used.

    Within header.php there is a call to:
    <?php wp_head(); ?>

    This is where the Google Analytics code (and many other plugins) insert code into pages.

    If I find the people who removed that from our templates… Cowboys!


Viewing 1 replies (of 1 total)
  • The topic ‘GA Script Not added to page’ is closed to new replies.