The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Web Design
    4. Best way to add Google Analytics to a Joomla!

    Best way to add Google Analytics to a Joomla!

    Web Design
    6 3 1.0k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Atlanta-SMO
      Atlanta-SMO last edited by

      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?

      1 Reply Last reply Reply Quote 1
      • Ties.com
        Ties.com last edited by

        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.

        Atlanta-SMO 1 Reply Last reply Reply Quote 1
        • KevinBudzynski
          KevinBudzynski last edited by

          When you look at the source, do you see the GA snippet?

          Atlanta-SMO 1 Reply Last reply Reply Quote 1
          • Atlanta-SMO
            Atlanta-SMO @KevinBudzynski last edited by

            Yes but doesn't seem right for some reason... www.metroboltmi.com

            1 Reply Last reply Reply Quote 0
            • Atlanta-SMO
              Atlanta-SMO @Ties.com last edited by

              Stuck it in the CSS which should overide the files right?

              Ties.com 1 Reply Last reply Reply Quote 0
              • Ties.com
                Ties.com @Atlanta-SMO last edited by

                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.

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post
                • Google analytic's API information
                  NickSamuel
                  NickSamuel
                  0
                  2
                  35

                • Best way to Load Responsive Images for Responsive Site?
                  TimHolmes
                  TimHolmes
                  0
                  2
                  68

                • What is the best way to handle annual events on a website?
                  Brando16
                  Brando16
                  1
                  5
                  105

                • A campaign ghost keeps returning to my Google Analytics - Help!
                  Sam.at.Moz
                  Sam.at.Moz
                  0
                  8
                  302

                • What would be the best way to translate my website for international seo?
                  David_ODonnell
                  David_ODonnell
                  0
                  6
                  1.5k

                • Responsive design and Google analytics mobile tracking codes?
                  mikecp
                  mikecp
                  0
                  2
                  1.2k

                • Best way to handle Spanish/English WEBSITE
                  ZephSnapp
                  ZephSnapp
                  0
                  3
                  334

                • Best way to handle related content links in a sidebar?
                  EGOL
                  EGOL
                  0
                  2
                  701

                Get started with Moz Pro!

                Unlock the power of advanced SEO tools and data-driven insights.

                Start my free trial
                Products
                • Moz Pro
                • Moz Local
                • Moz API
                • Moz Data
                • STAT
                • Product Updates
                Moz Solutions
                • SMB Solutions
                • Agency Solutions
                • Enterprise Solutions
                • Digital Marketers
                Free SEO Tools
                • Domain Authority Checker
                • Link Explorer
                • Keyword Explorer
                • Competitive Research
                • Brand Authority Checker
                • Local Citation Checker
                • MozBar Extension
                • MozCast
                Resources
                • Blog
                • SEO Learning Center
                • Help Hub
                • Beginner's Guide to SEO
                • How-to Guides
                • Moz Academy
                • API Docs
                About Moz
                • About
                • Team
                • Careers
                • Contact
                Why Moz
                • Case Studies
                • Testimonials
                Get Involved
                • Become an Affiliate
                • MozCon
                • Webinars
                • Practical Marketer Series
                • MozPod
                Connect with us

                Contact the Help team

                Join our newsletter
                Moz logo
                © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                • Accessibility
                • Terms of Use
                • Privacy