Best way to add Google Analytics to a Joomla!
-
I am having difficulties installing (and getting it to work) google analytics to Joomla! 2.5.8 site. I have it working on some sites but then not on others even though I have installed it the same. Is there a recommended or easy way to do this that works?
-
I've never heard of displaying javascript analytics code via CSS. You need to either edit header.php, index.php, or footer.php and paste the code directly into one of those template files. I recommend header but I've seen it at the beginning or end of index.php and I've seen it in the footer.
-
Stuck it in the CSS which should overide the files right?
-
Yes but doesn't seem right for some reason... www.metroboltmi.com
-
When you look at the source, do you see the GA snippet?
-
The best place to insert the analytics code is in the header.php file so it loads when the header loads. Some people recommend putting it in the footer but if you are using the asynchronous version of the analytics code then you don't need to put it in the footer.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Google analytic's API information
I have multiple websites and instead of having to log in to each google analytics I want to create a dashboard inside my MIS that has the audience overview graph, is there any way to use API to do this? Is there a way to
Web Design | | BobAnderson0 -
Fetch as Google not showing Waypoints.js on scroll animation
So I noticed that my main content underneath 4 reasons to choose LED Habitats did not show up in Fetch as Google as well as a few other sections. The site being brand new, so I'm not sure how this will be indexed. What happens is, as the user scrolls the content is brought in using Waypoints and Animate.css which offers an engaging yet simple user experience. I'm just afraid that If the content doesn't show up in "Fetch as Google" in webmaster tools that this content will never be found / indexed by Google. There are thousands of sites that use this library, I'm just curious what I'm doing wrong.. or what I can do. Is there a way for me to keep the simple animations but keep Google Happy at the same time? I took a screen shot of "Fetch as Google" and you can see blatant missing sections which are the sections animated by the waypoints library. Thanks for listening! Robert ZqgLWHi
Web Design | | swarming0 -
A campaign ghost keeps returning to my Google Analytics - Help!
A couple of campaign tracking links were created on my homepage (leading to internal pages), these were removed a few weeks ago (100% removed from the site). I understand there is a 6 month window and as long as a user returns (no matter from which source) they will be counted as a session against that campaign. Since these campaign links were set-up in error, I hoped creating a fresh new view within Google Analytics would stop them appearing. However they are still showing as sessions even in the new view (created after removing the campaign links in question). Is there anyway to stop this happening!? I want to be able to report on sessions correctly. Thanks, Sam
Web Design | | Sam.at.Moz0 -
Responsive design and Google analytics mobile tracking codes?
Hi all, We are currently rebuilding a site using responsive design, however i have just had a thought. On another site where we have a mobile site under a sub-directory we utilise mobile tracking codes as we found that this was far more accurate for recording visits. On a responsive design site evidently all pages, desktop and mobile, will be under the same URL, yet the content will adjust to the screen size of the device. Should we also change the tracking code to be mobile code on the lower resolutions or would the same code be sufficient?
Web Design | | Sarbs0 -
Best Forum Platform from an SEO perspective
Hi All, I am looking to start a eCommerce business and would like to centre the user engagement of the site around a forum. Can anyone suggest a forum platform that adopts good SEO practice? So far my considerations are; phpBB vBulletin Wordpress with bbPress plugin Wordpress with Tal.ki plugin Anyone used these with great success? Do you have another suggestion? I am simply in the preliminary stage of sourcing something and am eager to here your thoughts... Thanks in advance... Dan
Web Design | | djlaidler0 -
Any advice for best practice for mobile versions of websites?
Hi Mozzers, I am looking to develop a mobile version of one of my sites and was wondering what was considered best practice for the following: Where to host it: m.domain.com or domain.com/mobile ? Is rel='canonical' enough to avoid mobile version being indexed or should I use "noindex" on mobile version? How to handle tablets? Which screen size sees mobile version? Which sees full site version? Thanks in advance Geoff
Web Design | | SEM-Freak1 -
Best Ways to Handle a Website for Different Country Locations?
Currently our website is being redesigned into a CMS for our Headquarters in the US. We have three other locations. Germany, UK and Australia. Each Location has there own domain and hosting in there designated country. How safe will it be to upload our New Headquarters site to each of our different locations? I would like to stay uniform throughout. The content would be similar, but translated to the correct language. And some of the products would be different. Will this be a pretty easy process and will this cause any duplication issues? Are there any suggestions or MUST DO's for localization websites? The website is being designed with Wordpress and Magento as a custom CMS.
Web Design | | hfranz0 -
What CMS system is best?
Hi Guys, I am in the process of developing some new areas of work and a good CMS is going to be required to make my SEO and everything included work to its best. What CMS systems are the best ones to use from an SEO prospective and generally all round? Thanks
Web Design | | wazza19850