test
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • griiettner Friend
    #183066

    Hello All,

    Google analytic’s tool is a must use feature to your website, so you can keep track of what happen to your website.

    There is 2 ways you can add GA code to your website.

    1 – Use any Google Analytic’s plugin available on JED

    2 – In case you don’t feel like installing any new plugin to your website, you can do it manually, by modifying the right file from T3V3 powered templates. Open on your favorite Text Editor the following file “templates/ja_xxxx/tpls/home.php”

    3 – Insert the GA code before the closing body tag at the bottom of the file as shown in the following image.

    4 – Save the file and now you are done, just upload it your production server and your site is ready to start collect important data’s.


    1. insert-gacode-to-t3v3
    turminator Friend
    #478020

    Hello,

    In case I’m using “Home” profile to homepage and “Default” profile for other pages, I need to add same code in default.php file?

    Many thanks!

    Ninja Lead Moderator
    #478102

    <em>@turminator 352907 wrote:</em><blockquote>Hello,

    In case I’m using “Home” profile to homepage and “Default” profile for other pages, I need to add same code in default.php file?

    Many thanks!</blockquote>

    You can add it here
    <blockquote>templates/ja_your_template/tpls/blocks/footer.php</blockquote>
    see the screenshot


    1. google_script
    modernmagic Friend
    #480218

    Is it possible and how do I set up a override for the footer.php? What is the path to the new footer.php? I assume it goes here:
    templates/ja_t3v3_blank/html/

    Thanks for your help.

    Ninja Lead Moderator
    #480259

    <em>@modernmagic 355760 wrote:</em><blockquote>Is it possible and how do I set up a override for the footer.php? What is the path to the new footer.php? I assume it goes here:
    templates/ja_t3v3_blank/html/

    Thanks for your help.</blockquote>

    You can customize the footer on this file
    <blockquote>templates/ja_t3v3_blank/tpls/blocks/footer.php</blockquote>

    modernmagic Friend
    #487130

    I understand where I can modify the footer.

    But wouldn’t it be better to override the footer.php so that when I upgrade the template I do not loose my google analytics code?

    Ninja Lead Moderator
    #487277

    Yes, you need to backup customization file before doing to upgrade the template and its recommeded to use JA Extension manager component to upgrade JA template, it provides option to compare files between version so that you can know which files you did changes and take backup.

    modernmagic Friend
    #492187

    The GA code appears to have changed and now when I paste it into the footer.php it does not work. This is the code at the end of my footer.php

    </footer>
    <!-- //FOOTER -->
    <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-40739754-1', 'lawofficesofdanielkaminsky.com');
    ga('send', 'pageview');

    </script>

    But GA says that the “tracking code is not installed”

    Ninja Lead Moderator
    #492296

    You can try this way again.

    From GA site get code script google analytics and add it into footer page of your site. If you still face the problem, let me know.

    Please send me the google analytics script you want to add , URL of your site and admin access. I shall check it for you

    tfosnom Friend
    #493377

    <em>@Ninja Lead 372093 wrote:</em><blockquote>You can try this way again.

    From GA site get code script google analytics and add it into footer page of your site. If you still face the problem, let me know.

    Please send me the google analytics script you want to add , URL of your site and admin access. I shall check it for you</blockquote>
    @Ninja Lead

    Sorry if this has been asked/discussed elsewhere but why hasn’t JA made a place in the template and a backend insertion panel for GA in all it’s templates? Can’t be that hard .

    Shannon

    Ninja Lead Moderator
    #493514

    Yaa, it does sounds a good idea, will pass this to dev team for further consideration. Currently, you can easily find a thread in forum discussing about this. Otherwise, you can find good GA extension from JED

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

This topic contains 11 replies, has 5 voices, and was last updated by  Ninja Lead 11 years, 7 months ago.

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