-
AuthorPosts
-
March 30, 2010 at 7:47 am #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.
March 30, 2010 at 9:50 am #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
March 30, 2010 at 9:58 am #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 Friendmicrantha
- Join date:
- May 2007
- Posts:
- 465
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 6
- Thanked:
- 158 times in 148 posts
March 30, 2010 at 11:05 am #338423Hello,
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,
Micrantha1 user says Thank You to micrantha for this useful post
March 30, 2010 at 2:17 pm #338452Hi
I have used the following plugin to get analytics working…
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 laterIan
August 9, 2010 at 11:34 pm #352190Hello 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.
August 10, 2010 at 5:44 am #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>August 10, 2010 at 9:11 am #352234Thanks!
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.
February 9, 2011 at 12:46 pm #375881Hello, 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.xHere is the link to the OpenPotion plugin: http://extensions.joomla.org/extensions/site-management/site-analytics/11734.
Hope this helps.
February 10, 2011 at 5:11 am #375953How is the OpenPotion Plug licensed? Does GPLv2 mean freeware?
Anonymous ModeratorJA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
February 11, 2011 at 6:17 am #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.
1 user says Thank You to JA Developer for this useful post
-
AuthorPosts
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