Google Analytics Code Not Working in Fruitful
-
I followed the GA instructions to put the GA code in my header. When that idn’t work I tried the footer. Then I happened upon some info about putting in my page.php if your theme has a page tempate. Aha! I did so, but it’s not working as I did it. Is this correct placement, before the closing tag?
get_header(); ?> <?php fruitful_get_content_with_custom_sidebar('page'); ?> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-56819062-1', 'auto'); ga('send', 'pageview'); </script> <?php get_footer(); ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Google Analytics Code Not Working in Fruitful’ is closed to new replies.