• Hi,
    Just wondering, if I am looking to add the code to my google analytics into the theme, where would the best place be? I’m looking at the theme’s code on editor, however I’m not sure where to paste it as it seems to be not connecting.

    Thanks!
    My site is at http://www.thatchiccray.com

Viewing 1 replies (of 1 total)
  • Hi,

    You can do it by adding the below code in your theme’s functions.php file.

    I would advice you to do the changes using a Child Theme to keep the changes preserved even after the update.

    add_action( 'wp_head', 'mpm_google_analytics');
    function mpm_google_analytics() { ?>
    <!-- REPLACE THIS LINE WITH GOOGLE ANALYTICS CODE -->
    <?php }

    Hope it helps
    Thanks

Viewing 1 replies (of 1 total)

The topic ‘Google Analytics’ is closed to new replies.