Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • gtmroy Friend
    #149967

    I can’t find <body> tag to insert google anaylytics code in Ja Purity II template. According to this topic, I tried to find it in Layout.css file but failed to do it. Can anyone help me in this regard? Thanks in advance.

    rachanee04 Friend
    #338408

    <em>@gtmroy 172179 wrote:</em><blockquote>I can’t find <body> tag to insert google anaylytics code in Ja Purity II template. According to this topic, I tried to find it in Layout.css file but failed to do it. Can anyone help me in this regard? Thanks in advance.</blockquote>
    Being someone who has always hand built any web project using WYSIWYG page editors, I just can’t seem to get my head around alternative templates either, especially when they call invisible to the off-line eye elements onto the page using code.

    Maybe it’s not such a steep learning curve as it seems but more of a slight bend, but when you get to my age, and information doesn’t follow through or has missing links or local bugs, I’m ready to jump, ha ha lol.

    But seriously, and just for the record, I’ve found that most instructions become clearer when you walk away from them and try to forget about whatever it is that’s not going right and come back later to re-read or review posted responses. Because stuff is always changing (usually for the better), implementing and tweaking any template can become challenging to say the least.

    Sorry gtmroy, I know my post is not much help to your specific problem (I’m new!), but it might keep the thread fresh for you and pull in some members in the know.

    Best regards

    Andy

    gtmroy Friend
    #338411

    <em>@rachanee04 172196 wrote:</em><blockquote>Being someone who has always hand built any web project using WYSIWYG page editors, I just can’t seem to get my head around alternative templates either, especially when they call invisible to the off-line eye elements onto the page using code.

    Maybe it’s not such a steep learning curve as it seems but more of a slight bend, but when you get to my age, and information doesn’t follow through or has missing links or local bugs, I’m ready to jump, ha ha lol.

    But seriously, and just for the record, I’ve found that most instructions become clearer when you walk away from them and try to forget about whatever it is that’s not going right and come back later to re-read or review posted responses. Because stuff is always changing (usually for the better), implementing and tweaking any template can become challenging to say the least.

    Sorry gtmroy, I know my post is not much help to your specific problem (I’m new!), but it might keep the thread fresh for you and pull in some members in the know.

    Best regards

    Andy</blockquote>
    Thank you Andy for your reply. Actually I am sorry that I can’t understnad what you wanna say to me. I am a newbie in joomla area and do not understand many things of it. Just googling and learning about this nice web tool and that’s why I have to ask for help times to times.

    micrantha Friend
    #338423

    Hello,
    This is a T3 framework template, so files are differently organised.
    But, according to the post you mentioned you should open file ja_purity_ii/layouts/default.php, so not the css-file.
    In this default.php file the blocks for the different parts of the page are loaded.
    Code of these blocks you can find in directory ja_purity_ii/layouts/blocks/…

    You could also add your analytics code in handheld.php and iphone.php
    So these are the 3 files containing the tag </body>

    Good luck,
    Micrantha

    flumpy Friend
    #338452

    Hi

    I have used the following plugin to get analytics working…

    Plugin link – click here

    just install and enter your analytics key into the plugin settings page and enable it!

    saves editing template files
    and works if you change templates later

    Ian

    descobrir Friend
    #352190

    Hello all!

    Google says the code must be in the head tag and not in the body tag as I’m reading here and a bit everywhere.

    What do you think it is the best place to insert the code and… why?

    Thanks for the help and the explanation.

    skygod Friend
    #352207

    <em>@descobrir 189556 wrote:</em><blockquote>Hello all!

    Google says the code must be in the head tag and not in the body tag as I’m reading here and a bit everywhere.

    What do you think it is the best place to insert the code and… why?
    </blockquote>

    For the latest GA tracker, Goggle do indeed recommend inserting it just before </head>, but it’s best you go to their site to get the exact code.

    Most of the current plugins are still designed to use the old tracker, so you are best installing directly by hand at the bottom of layoutsblockshead.php

    <!-- Google Analytics -->
    <script type="text/javascript">
    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-xxxxxxxx-x']);
    _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>

    descobrir Friend
    #352234

    Thanks!

    So in your opinion placing the GA tracker code in the blocks>head.php is better than in default.php?

    I never thought on that but you’re probably right.

    buccini07 Friend
    #375881

    Hello, I have solved the problem of adding the Google-snippet by using the OpenPotion plugin found on the JED.
    OpenPotion is correctly using the new version of the google-code.

    I have installed it in one minute. The generated snipped code seems ok to me; it is positionated on all pages just before the </head> tag. My analytics account states that my website is tracked… so seems all working well!
    I’m using Joomla 1.5.x

    Here is the link to the OpenPotion plugin: http://extensions.joomla.org/extensions/site-management/site-analytics/11734.

    Hope this helps.

    lexi Friend
    #375953

    How is the OpenPotion Plug licensed? Does GPLv2 mean freeware?

    Anonymous Moderator
    #376130

    <em>@lexi 220498 wrote:</em><blockquote>How is the OpenPotion Plug licensed? Does GPLv2 mean freeware?</blockquote>

    Hi, you can see at http://extensions.joomla.org/extensions/site-management/site-analytics/11734, this plugin is licensed as GPLv2 which means free for personal usage. Kindly check with the provider about specifications if you want to develop and sell the customized.

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

This topic contains 11 replies, has 9 voices, and was last updated by Anonymous 13 years, 9 months ago.

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