Technicality Google Analytics

Adds your Google Analytics Tracking ID to your headers.

Author:Jeff Trotman, Technicality LLC (profile at wordpress.org)
WordPress version required:4.6
WordPress version tested:5.7.2
Plugin version:1.0.2
Added to WordPress repository:15-06-2019
Last updated:07-05-2021
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://technicality.online/products/GoogleAna...
Total downloads:1 092
plugin download
Click to start download

This is a very simple WordPress plugin that adds the code needed for Google Analytics to your page. You just need to install the plugin, activate it, and enter your Tracking ID.

Technical Details (in case you are curious, the plugin takes care of this for you)

If your Google Analytics Tracking ID is UA-XXXXXXXX-1, this code needs to be added to your page headers for tracking to occur:

window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());

gtag(‘config’, ‘UA-XXXXXXXX-1’);

The plugin adds a field to the General Settings page for you to enter your Tracking ID. Activate the plugin, enter your Tracking ID – that’s all you have to do. The code above (with your Tracking ID) will automatically be inserted into the header of each page your readers view.


ChangeLog