Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • kalisto Friend
    #161098

    I have installed bigshot and when I try to add google code track manually I can´t find the html code in my template, thanks!


    1. 1
    2. 2
    Phill Moderator
    #379943

    What is “Bigshot”? Not heard of that before.

    Here is the simplest way to add Google or any other analytics/tracking code to this template although there are plugins available on the JED that will aslo do the job if you do not like playing with the code.

    Copy the file plugins>system>jat3>jat3>base-themes>default>page>default.php into templates>ja_your-template-name>page>default.php and insert your analytics code just before the </head> tag as per below.

    <head>
    <?php //gen head base on theme info
    $this->showBlock ('head');
    ?>
    <?php
    $blocks = T3Common::node_children($this->getBlocksXML ('head'), 'block');
    foreach ($blocks as $block) :
    $this->showBlock ($block);
    endforeach;
    ?>

    <?php echo $this->showBlock ('css') ?>
    ************YOUR ANALYTICS CODE HERE*************
    </head>

    kalisto Friend
    #380245

    Hi Phill,

    This is bigshot (http://extensions.joomla.org/extensions/site-management/site-analytics/6170) one of your partners wrote it in the public forum.
    About the track code, I have done what you tell me, but it does not work. May I give you the admin and pass so you can have a look? Thanks!

    Phill Moderator
    #380248

    Sure, send me you admin logon, link to your site and preferably an ftp account and I’ll take a look. Please include a link to this thread too so I can find it when we have fixed it.

    kalisto Friend
    #380692

    Did you receive the login and pass? I sent them to JA Support . If you do not get them, pls let me know and I will resend them, Thank you!

    kalisto Friend
    #380693

    Or do you prefer me to write them here? I don´t know if this is a public forum, thanks again!

    Phill Moderator
    #380723

    I do not have access to that mailbox as I am just a moderator on the forums. Please send me them via Private Messaging. Click on my username and you will see the link.

    Phill Moderator
    #380779

    Thanks for your PM.

    Your analythics code is visible in your live site –

    <script type="text/javascript">
    var _gaq = _gaq || [];

    _gaq.push(['_setAccount', '**************']);

    _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>

    If you are still not getting analytics on your google page you will need to ask them why the script is not working. It is in the correct place in your site and is active.</blockquote>

    kairey Friend
    #382105

    Worked for me tx….

    kalisto Friend
    #382142

    At the end worked for me too, tx 🙂

    zyuong Friend
    #386291

    Ya it work for me.

    Thanks a lot.
    steven.

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

This topic contains 11 replies, has 4 voices, and was last updated by  zyuong 13 years, 6 months ago.

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