test
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • Gerard Brannigan Friend
    #198940

    Hi am having trouble adding google analytics to my site.
    i have tried adding the google code in the header.php file biit this does not produce a result.
    Is there an obvious place for me to put it?
    thanks

    pavit Moderator
    #539336

    Hi

    Decoding your website html the GA code is correctly added

    <meta name="google-site-verification" content="removed.html" />

    <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'removed']);
    _gaq.push(['_trackPageview']);

    (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
    })();
    </script>
    </head>

    Gerard Brannigan Friend
    #539338

    Thanks I just added the Asynchronous Google Analytics plug in and that sorted it.Id still like to know where the script goes in the source code tho!

    pavit Moderator
    #539340

    <blockquote>Id still like to know where the script goes in the source code</blockquote>

    It’s not needed to edit the php file T3 framework has a specific feature for this

    Take a look HERE

    turbogoat2011 Friend
    #541595

    Does anybody else have an issue trying to use different tracking codes on different themes?

    I have some landing pages that are all one Joomla site but use add-on domains/redirects to different pages on the site that are assigned a different theme of JA Purity.

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

This topic contains 5 replies, has 3 voices, and was last updated by  turbogoat2011 10 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum