Where to put Google analytics on Yootheme template
Moderator: General Support Moderators
-
- Joomla! Apprentice
- Posts: 5
- Joined: Thu Jan 06, 2011 9:44 am
Where to put Google analytics on Yootheme template
Hello
As per the title I am not sure where to put the code on my template. I found some advice that said its as easy as going into the template via the back end, choosing edit html and then placing it on the second from bottom line just before the body> text. The yootheme didn't have this code so I am unsure how to add this.
any help would be greatly appreciated.
Regards
john.
As per the title I am not sure where to put the code on my template. I found some advice that said its as easy as going into the template via the back end, choosing edit html and then placing it on the second from bottom line just before the body> text. The yootheme didn't have this code so I am unsure how to add this.
any help would be greatly appreciated.
Regards
john.
-
- Joomla! Enthusiast
- Posts: 239
- Joined: Wed Feb 27, 2008 8:49 am
Re: Where to put Google analytics on Yootheme template
Well there is an extension that might make this easier for you .
http://extensions.joomla.org/extensions ... ytics/6170
you would have to go get your Google analytics code but it should do the trick. I have not tested this particular extension but it seems to be very popular.
I would try to enter the code in the footer of the page (template) . If you do not want to use an extension.
Cheers.
http://extensions.joomla.org/extensions ... ytics/6170
you would have to go get your Google analytics code but it should do the trick. I have not tested this particular extension but it seems to be very popular.
I would try to enter the code in the footer of the page (template) . If you do not want to use an extension.
Cheers.
-
- Joomla! Apprentice
- Posts: 5
- Joined: Thu Jan 06, 2011 9:44 am
Re: Where to put Google analytics on Yootheme template
Hey
Thank you for that link i will give that a go later. I went to put the code at the bottom of the template but i think yoo theme do their code differently, so i was not able to (although I don't know too much abotu this)
Thanks again.
Thank you for that link i will give that a go later. I went to put the code at the bottom of the template but i think yoo theme do their code differently, so i was not able to (although I don't know too much abotu this)
Thanks again.
- keliix06
- Joomla! Ace
- Posts: 1022
- Joined: Wed Aug 17, 2005 11:46 pm
- Location: Minneapolis, MN
- Contact:
Re: Where to put Google analytics on Yootheme template
The plugin is the easiest way to do it, but if you edit the template's index.php file you'll find the </body> tag near the bottom of that for placing the code manually.
Doyle Lewis
BuyHTTP Internet Services
http://www.buyhttp.com/joomla_hosting.html - No Overselling Guarantee. Your Joomla site, faster.
http://www.joomlademo.com - 30 day free trial of Joomla
BuyHTTP Internet Services
http://www.buyhttp.com/joomla_hosting.html - No Overselling Guarantee. Your Joomla site, faster.
http://www.joomlademo.com - 30 day free trial of Joomla
- v2interactive
- Joomla! Guru
- Posts: 823
- Joined: Thu May 28, 2009 12:32 am
- Location: Atlanta, GA
- Contact:
Re: Where to put Google analytics on Yootheme template
Exactly.keliix06 wrote:The plugin is the easiest way to do it, but if you edit the template's index.php file you'll find the </body> tag near the bottom of that for placing the code manually.
-
- Joomla! Enthusiast
- Posts: 132
- Joined: Tue May 04, 2010 8:36 pm
- Contact:
Re: Where to put Google analytics on Yootheme template
It won't work by modifying index.php. The guy is asking about a "Yootheme" template.
For yootheme tempaltes you have to modify head.php in /templates/yourtheme/warp/systems/joomla.1.5/layouts/
For yootheme tempaltes you have to modify head.php in /templates/yourtheme/warp/systems/joomla.1.5/layouts/
PM me for any Joomla related custom work.
-
- Joomla! Intern
- Posts: 66
- Joined: Wed Oct 18, 2006 9:25 am
- Location: Holland
- Contact:
Re: Where to put Google analytics on Yootheme template
The new Google Analytics tracking code should be added to the <head>, not </body>.
New plguins will make this possible for you. Yootheme templates are built up differently from other templates, so you won't be able to simply change the index.php.
Go with a simple system plugin to add the GA code. Make sure it is a asynchronous trackingcode script.
New plguins will make this possible for you. Yootheme templates are built up differently from other templates, so you won't be able to simply change the index.php.
Go with a simple system plugin to add the GA code. Make sure it is a asynchronous trackingcode script.
Kinds regards,
Martijn
http://www.analyticsforjoomla.com - Analytics plugins for Joomla
Follow us on Twitter: @analyticsjoomla
Martijn
http://www.analyticsforjoomla.com - Analytics plugins for Joomla
Follow us on Twitter: @analyticsjoomla
-
- Joomla! Fledgling
- Posts: 2
- Joined: Thu Feb 24, 2011 3:38 pm
Re: Where to put Google analytics on Yootheme template
Could you clarify how to put the code in the file ?
EDIT:
I did my self, I put the code in a new php file named ga.php and at the last line of the head.php I have included:
<?php include ("ga.php"); ?>
Now the code is eh the <head> code and not in the <body> It has to be like this?
EDIT:
I did my self, I put the code in a new php file named ga.php and at the last line of the head.php I have included:
<?php include ("ga.php"); ?>
Now the code is eh the <head> code and not in the <body> It has to be like this?
Last edited by noizer1 on Thu Feb 24, 2011 4:30 pm, edited 1 time in total.
-
- Joomla! Intern
- Posts: 66
- Joined: Wed Oct 18, 2006 9:25 am
- Location: Holland
- Contact:
Re: Where to put Google analytics on Yootheme template
I would download a plugin to add the tracking code to your <head> section. You can find them in the extensions.joomla.org website.
Once you did this, you will need to install the plugin. If you don't know how this works, you can get a step by step instruction on how to do that here:
http://www.analyticsforjoomla.com/other ... la-16.html
After that, you're done!
I hope that answers your question. If not, you might want to ask the guys at Yootheme for a instruction on how to add the code to the files of their template.
Once you did this, you will need to install the plugin. If you don't know how this works, you can get a step by step instruction on how to do that here:
http://www.analyticsforjoomla.com/other ... la-16.html
After that, you're done!
I hope that answers your question. If not, you might want to ask the guys at Yootheme for a instruction on how to add the code to the files of their template.
Kinds regards,
Martijn
http://www.analyticsforjoomla.com - Analytics plugins for Joomla
Follow us on Twitter: @analyticsjoomla
Martijn
http://www.analyticsforjoomla.com - Analytics plugins for Joomla
Follow us on Twitter: @analyticsjoomla
-
- Joomla! Fledgling
- Posts: 2
- Joined: Thu Feb 24, 2011 3:38 pm
Re: Where to put Google analytics on Yootheme template
I am using Joomla 1.6 and at the moment there is no extension (at least I haven't found one)
I edited my post because I think I have done it right
I edited my post because I think I have done it right
-
- Joomla! Intern
- Posts: 66
- Joined: Wed Oct 18, 2006 9:25 am
- Location: Holland
- Contact:
Re: Where to put Google analytics on Yootheme template
Kinds regards,
Martijn
http://www.analyticsforjoomla.com - Analytics plugins for Joomla
Follow us on Twitter: @analyticsjoomla
Martijn
http://www.analyticsforjoomla.com - Analytics plugins for Joomla
Follow us on Twitter: @analyticsjoomla
- mlvfx
- Joomla! Intern
- Posts: 60
- Joined: Sun Oct 12, 2008 10:36 am
Re: Where to put Google analytics on Yootheme template
Hi,
I believe yootheme index.php refers to /tamplate_name/layouts/template.php
index.php just refers to that code which has a standard index.php structure.
Copy your Google script before the closing </head> tag
So thats it for a manual placement!
Cheers!
I believe yootheme index.php refers to /tamplate_name/layouts/template.php
index.php just refers to that code which has a standard index.php structure.
Copy your Google script before the closing </head> tag
So thats it for a manual placement!
Cheers!
-
- Joomla! Fledgling
- Posts: 1
- Joined: Tue Sep 04, 2012 8:20 pm
Re: Where to put Google analytics on Yootheme template
thats solve it!
-
- Joomla! Fledgling
- Posts: 3
- Joined: Thu Apr 04, 2013 7:03 am
- Contact:
Re: Where to put Google analytics on Yootheme template
yes works although yootheme support more or less insist on their method to work as well (by putting the code before the ending body tag in the administration template area) - tried both and only the way suggested by google (placing the code before the ending head tag) works...
regards
chris
regards
chris
Last edited by alikon on Wed Oct 30, 2013 4:48 am, edited 1 time in total.
Reason: signature removed
Reason: signature removed
- mfjlabs
- Joomla! Apprentice
- Posts: 19
- Joined: Fri Mar 01, 2013 9:59 pm
- Location: USA
- Contact:
Re: Where to put Google analytics on Yootheme template
No one mentioned it, but thought it might be encouraging to see what GAs look like in YooTheme Tasty under J2.5 (
Can't wait to get to 3.x.
Good luck with your upgrade.
Peace.
). No xtra extensions & been working sweet for months now.Can't wait to get to 3.x.
Good luck with your upgrade.
Peace.
You do not have the required permissions to view the files attached to this post.
Best,
Frank
The MFJLabs Team
Frank
The MFJLabs Team
- zombie4eva
- Joomla! Apprentice
- Posts: 10
- Joined: Wed Jul 29, 2009 11:50 am
Re: Where to put Google analytics on Yootheme template
Thanks very much , I finally solved with your advise of editing template.php for yootheme template..mlvfx wrote:Hi,
I believe yootheme index.php refers to /tamplate_name/layouts/template.php
index.php just refers to that code which has a standard index.php structure.
Copy your Google script before the closing </head> tag
So thats it for a manual placement!
Cheers!
-
- Joomla! Fledgling
- Posts: 2
- Joined: Mon Jun 20, 2011 2:49 pm
Re: Where to put Google analytics on Yootheme template
Hi,
ihave the same problem. Im using a yootheme template for my joomla 2.5.9.
I want to use this canonical.php (more infos here: http://www.concept-br.de/blog/canonical-tag-for-joomla/)
Ive posted the php include in the head of the layouts/template.php file, but without success.
Ive tried it with the head.php in warp/systems/joomla/layouts.head.php - same result !
I hope someone has an idea or solution.
Thx a lot
mad
ihave the same problem. Im using a yootheme template for my joomla 2.5.9.
I want to use this canonical.php (more infos here: http://www.concept-br.de/blog/canonical-tag-for-joomla/)
Ive posted the php include in the head of the layouts/template.php file, but without success.
Ive tried it with the head.php in warp/systems/joomla/layouts.head.php - same result !
I hope someone has an idea or solution.
Thx a lot
mad
-
- Joomla! Intern
- Posts: 52
- Joined: Thu Oct 07, 2010 6:05 pm
Re: Where to put Google analytics on Yootheme template
Hi,
Did you resolve it?
I have a yootheme template and I put the GA code in layouts/template.php without success. Please tell me how you do it.
Did you resolve it?
I have a yootheme template and I put the GA code in layouts/template.php without success. Please tell me how you do it.
- pishro
- Joomla! Explorer
- Posts: 301
- Joined: Tue Oct 09, 2012 7:22 am
Re: Where to put Google analytics on Yootheme template
hi fantoche!fantoche wrote:I have a yootheme template and I put the GA code in layouts/template.php without success. Please tell me how you do it.
please see this question in Support yootheme : Google Analytics Tracking code
Code: Select all
http://www.yootheme.com/support/question/6050