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:
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:
- Visit the GA Pro “Customize” settings, where you will find the following sets of options:
- Custom Code #1
- Custom Code #2
- Custom Code #3
- Choose the first one of these that is not currently being used, say Custom Code #1
- Add your tracking code (or any code you want) in Custom Code #1 ▸ “Custom Code”
- 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
- Leave the setting “Post IDs” blank/empty, or add some IDs if you want to display only on certain posts/pages
- Lastly, choose an option for the “Location” setting (if in doubt choose the default option: Header – Before Primary Tracking)
Save changes and done.