InMotion Hosting Support Center
This is archived and no longer maintained. Any information contained in this article may be out of date.

In this tutorial we will show you how to add a Google Analytics Tracking code to your PHP-Fusion Website. Google analytics allows you to view statistics regarding visitors to your website.

How to Add a Google Analytics Code:

  1. In the root of your PHP-Fusion files, edit the footer.php file. It is located in:
    /themes/templates/footer.php
  2. Enter the code google provided in the footer.php file, and save it. The code should look something like this:

    <script type="text/javascript">

    var _gaq = _gaq || [];
    _gaq.push(['_setAccount', 'UA-XXXXX-Y']);
    _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>


    Be sure to replace UA-XXXXX-Y with the actual code google provided you with.

Congratulations, now you know how to add a Google Analytics code to your PHP-Fusion website!

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

0 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!