Analyzing Traffic as well as E-Commerce Transactions on your SuperSite and PartnerSite via Google Analytics

Analyzing Traffic as well as E-Commerce Transactions on your SuperSite and PartnerSite via Google Analytics

Apart from just knowing the number of visitors reaching your SuperSite 2/SuperSite/PartnerSite, it is important to also analyze the traffic visiting your site as it allows you to market your website better. Some of the clear benefits of such analysis are:

  • Evaluate your SuperSite 2/SuperSite/PartnerSite performance in Search Engines e.g., which keywords people search for in search engines to reach your site

  • View the visitor's path i.e., the pages the visitor navigates through

  • Ability to categorize your visitors by geographic location

  • Capturing e-commerce transactions through your SuperSite 2/SuperSite

Google Analytics (Anchor: googleanalytics) is a reporting software which shows you how people found your site, how they explored it, and how you can enhance their visitor experience. It provides powerful tracking for websites. It's one of the most powerful web analytics solutions. It provides in-depth reports for everyone involved in the running of a website, from the developers and designers to the marketing and management teams.

The following links would help you in signing up and integrating your Google Analytics tracking code in your SuperSite 2/SuperSite/PartnerSite:

  • Features: http://www.google.com/analytics/features.html

  • Sign Up: http://www.google.com/analytics/sign_up.html

  • Help Center: http://www.google.com/support/googleanalytics/?ctx=browse

Integrating Google Analytics Tracking Code in my SuperSite 2/SuperSite/PartnerSite

  1. Login to your SuperSite 2/SuperSite/PartnerSite Admin Area. 1

  2. Under the My Languages section for SuperSite 2 or My Language SuperSites/PartnerSites section for Supersite/PartnerSite, click the Manage Site button individually besides each Language SuperSite 2/SuperSite/PartnerSite.

  3. Then click the Edit Content button.

  4. At the bottom of the page, click the Edit link besides the Root.html file.

  5. Copy and paste the Google Analytics tracking code, in the Your Content textbox immediately before the closing </head> tag.

    For example, you need to mention the following code before the closing </head> tag:

          <script type=text/javascript>
            var gaJsHost = ((https: == document.location.protocol) ? https://ssl. : http://www.);
                  document.write(unescape(%3Cscript src=' + gaJsHost + google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E));
       </script>

       <script type=text/javascript>
            try{
            var pageTracker = _gat._getTracker(UA-xxxxxx-x);</p>
            pageTracker._trackPageview();
            } catch(err) {}
       </script>
    Note
    • xxxxxx-x: Represents the Google Analytics Account number and needs to be replaced with your Account number.

    • The tracking code needs to be generated from within your Google Analytics Control Panel.

    • In order to track e-commerce transactions, you need to

      1. first enable e-commerce reporting for your website, from within your Google Analytics Control Panel. 2

      2. Now, add the tag <#tag:new_google_analytics_receipt /#> in the Google Analytics code. Thus, the code will look like:

              <script type="text/javascript">
              var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
           document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
           </script>

           <script type="text/javascript">
              try{
                 var pageTracker = _gat._getTracker("UA-xxxxxx-x");
                 pageTracker._trackPageview();
                    <#tag:new_google_analytics_receipt /#>
                 } catch(err) {}
           </script>
           

    • Tracking code provided by Google previously:

         <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
         </script>
         <script type="text/javascript">
            _uacct="UA-xxxx-x";
            urchinTracker();
         </script>
    • It is recommended that the new code be used since it supports new features in Analytics. However, you may continue with the old code if you wish.

    • You need to use either the new code or the old one, not both simultaneously.

    • For Support related to Google Analytics, you will have to contact Google directly. 3

    • If you have enabled multiple Languages for your SuperSite 2/SuperSite/PartnerSite, you would have to repeat the above mentioned process for each of these.

  6. Click the Save Changes button.