Plugin Planet

Premium WordPress Plugins

GA Pro makes it simple to add your GA tracking code. Most users can follow the Quick Start Guide and be up and running in less than a few minutes. The Quick Start Guide explains how to set up the common scenario where one tracking code is used for the entire WordPress-powered site. This tutorial explains how to go further by adding multiple tracking codes, or any other custom code that may be required.

First, some context..

To give you some context as to what we’re referring to here. If you visit the plugin settings and click on the Customize tab, you will find the following settings:

GA Pro - Custom TrackingScreenshot of the GA Pro Custom Tracking settings (click image for full-size view)

If you scroll down on the “Customize” tab, you will find three sections: one for each custom tracking code. So you can add and customize three sets of custom code:

  • Custom Code #1
  • Custom Code #2
  • Custom Code #3

So the following steps to add custom tracking/code applies to each of these three sets. That is, with GA Pro, you can add up to three custom tracking codes (or any code) to your site.

Add custom tracking codes

Here are the basic steps to add custom tracking:

  1. Visit the GA Pro “Customize” settings, where you will find the following sets of options:
    • Custom Code #1
    • Custom Code #2
    • Custom Code #3
  2. Choose the first one of these that is not currently being used, say Custom Code #1
  3. Add your tracking code (or any code you want) in Custom Code #1 ▸ “Custom Code”
  4. Then enable one or both of the following settings (depending on where you want to display the tracking code):
    • Enable Admin — Add code to all pages in the Admin Area
    • Enable Frontend — Add code to all pages on the frontend
  5. Leave the setting “Post IDs” blank/empty, or add some IDs if you want to display only on certain posts/pages
  6. Lastly, choose an option for the “Location” setting (if in doubt choose the default option: Header – Before Primary Tracking)

Save changes and done.

Important: If adding another GA tracking code via the custom settings, make sure to enter the complete tracking code, NOT just the tracking ID (like you would for “Primary Tracking” under the Configure tab). You can verify that your tracking code is correct by comparing it with the examples provided in the Google Documentation.

Note: For each Custom Code section, you will find a preview of the tracking code or custom code (displays after you save changes). So you can check and make sure everything is correct. Also to double-check and verify accuracy, you can examine the source code of your web pages.