Difference between revisions of "Google Analytics"

From WHMCS Documentation

Line 7: Line 7:
 
To download the latest version of the module, please visit the Official Addon Listing page for it @ http://www.whmcs.com/members/communityaddons.php?action=viewmod&id=314
 
To download the latest version of the module, please visit the Official Addon Listing page for it @ http://www.whmcs.com/members/communityaddons.php?action=viewmod&id=314
  
Once downloaded, simply unzip the file and upload the google_analytics folder within it to the '''/modules/addons/''' directory of your WHMCS installation.
+
'''As of WHMCS V5.0 the Google Analytics module is included by default and does not need to be downloaded or installed'''
  
 
==Setup==
 
==Setup==
Line 20: Line 20:
 
Once you've done this, simply activate the Google Analytics module in WHMCS ('''Setup > Addon Modules''') and enter your Analytics Tracking ID and optionally Root Domain (if you use multiple subdomains for your site) where requested.
 
Once you've done this, simply activate the Google Analytics module in WHMCS ('''Setup > Addon Modules''') and enter your Analytics Tracking ID and optionally Root Domain (if you use multiple subdomains for your site) where requested.
  
Then the final step is to add the javascript for tracking page views to both your site and WHMCS client area. WHMCS makes this easy by defining a template tag {$google_analytics_html} which you just need to add where you want the tracking code output.  We recommend placing this just before the closing body tag </body> in your active header.tpl or footer.tpl template files.
+
If you are using a custom template set, you need to ensure that your footer.tpl file contains the {$footeroutput} template tag just before the closing </body> tag in order for the tracking code to be output.
  
 
==Goal Tracking==
 
==Goal Tracking==

Revision as of 01:36, 17 December 2011

Google Analytics allows you to track how people find your site, how they navigate through it and how they become customers. You can see trends of pageviews, visits, bounce rate, conversion rate, geographical locations and much more.

And in WHMCS, we've made it easy to install & use by creating an addon module that fully automates the integration process.

Download/Install

To download the latest version of the module, please visit the Official Addon Listing page for it @ http://www.whmcs.com/members/communityaddons.php?action=viewmod&id=314

As of WHMCS V5.0 the Google Analytics module is included by default and does not need to be downloaded or installed

Setup

The first step of tracking e-commerce transactions with Google Analytics is to enable e-commerce reporting for your website's profile inside the Google Analytics panel:

  1. Sign in to your account.
  2. Click Edit next to the profile that you'd like to enable.
  3. On the Profile Settings page, click Edit next to Main Website Profile Information.
  4. Change the E-Commerce Website radio button from No to Yes.

Once you've done this, simply activate the Google Analytics module in WHMCS (Setup > Addon Modules) and enter your Analytics Tracking ID and optionally Root Domain (if you use multiple subdomains for your site) where requested.

If you are using a custom template set, you need to ensure that your footer.tpl file contains the {$footeroutput} template tag just before the closing </body> tag in order for the tracking code to be output.

Goal Tracking

Once integrated, you can also take advantage of goal tracking. What goal tracking does is allow you to set specific pages that define a user has reached the ultimate intended destination. For most people this is completing an order - placing & paying.

In WHMCS the goal url for a completed & paid order is /whmcspath/cart.php?a=complete This is the page a user ends up on after completing checkout, and making payment for the order using any of the online real-time gateways.

Unfortunately if using an offline gateway such as Mail in Payment or Bank Transfer, where you aren't paid in real-time, then goal tracking will not be able to track the conversions of those users.