Extension: Google Analytics

This article was last updated on the January 2, 2017.

Extensions are X specific plugins available for download for all customers with a validated purchase of X. You can easily download and manage all of your Extensions directly from the WordPress admin area under Addons > Extensions. This article covers documentation for the Google Analytics Extension and goes into detail on certain features where needed.

Enabling the Extension

After installing and activate Google Analytics, you’ll find its settings page underneath the Addons menu.

Google Analytics Settings

From the main Google Analytics settings screen you can choose to disable or enable the plugin as needed:

Google Analytics Enable Or Disable

Disabling the plugin will effectively turn off all output from the plugin (e.g. HTML, CSS, JavaScript etc). This is useful as a quick way to toggle activity if you ever need without having to go through the Plugins menu and worry about activating/deactivating it completely. This way you can work with and manage all of your X specific functionality from one centralized place under the Addons section.

Selecting the enable checkbox will bring up the Settings meta box below. This is where you will adjust any options for the plugin and input your data as needed.

Google Analytics Main Settings

What The Google Analytics Extension Does

The Google Analytics extension allows you to easily add your Google Analytics tracking script to your website. Simply input your code snippet and select where you would like it to be output on your page (i.e. in your site’s header or footer).

Setting Up Google Analytics Extension

While we won’t cover how to setup Google Analytics itself, Google has some great documentation on how to get started with Google Analytics here.

To setup the plugin, first of all make sure you have a Google Analytics property already set up for your website, if you don’t. Create one before continuing this tutorial. When you have your Google Analytics property setup click on Admin then click on Tracking info then Tracking code and copy the script from the Website tracking box. Copy everything including the script tags.

Website tracking script

Once you have your tracking script go back to your WordPress Admin dashboard >> X Addons >> Google Analytics and paste your script in the Analytics Code box. Once that’s done you should have something that looks like this:

Tracking Code added

The final option is to select whether you want your tracking code to output in the header or footer of your website. Selecting Head will place the code in the head section of your website and is more likely to track all visitors to your site, even if they do not wait for your entire web page to load. Selecting Footer will place the near the closing body tag of your website and will track only users that have waited for your entire page to load.

Once your happy with everything go ahead and click on Update to save your settings.

Congrats you’ve now successfully setup Google Analytics.