WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by Dustyn Doyle v1.3

Simple Google Analytics Tracking

Add Google Analytics to your site with just the Tracking ID through Simple Google Analytics Tracking.

Simple Google Analytics Tracking

The facts

Rating
5★ from 9
Active installs
1k+
Price
Free
Last updated
19 Apr 2017
Added
Feb 2015
Requires WP
3.8
Tested up to
WP 4.7.35
Downloads
19,864

Our analysis

AI-assisted

Simple Google Analytics Tracking is a WordPress plugin that allows you to integrate Google Analytics into your site using just the Tracking ID. Once the ID is entered, the plugin automatically adds the necessary Google Analytics code to your site.

The plugin does not track Editors and Administrators by default, which helps in keeping your analytics reports clean. However, this setting can be changed using filters provided by the plugin for more advanced customisation.

Best for: This plugin is suitable for WordPress users looking for a straightforward way to implement Google Analytics.

What it does well

  • Easy integration with Google Analytics using Tracking ID
  • Automatically adds Google Analytics code
  • Prevents tracking of Editors and Administrators by default
  • Customisable through various filters

Where it falls short

  • Limited information on additional features or support
  • Last updated in April 2017, may not be compatible with newer WordPress versions

Verdict

Simple Google Analytics Tracking offers a basic solution for adding Google Analytics to your site, but its lack of recent updates may be a concern for some users.

From the developer

Dustyn Doyle's own description of Simple Google Analytics Tracking, lightly tidied.

Simple Google Analytics Tracking allows you to add Google Analytics to your WordPress site with only the Tracking ID. Once the Tracking ID is input the Google Analytics code is added automatically with your Tracking ID.

Simple Google Analytics Tracking does not track Editors and Administrators by default to prevent extra page views from showing up in your reports.
Editors and Administrators can be allowed through the sgat_output_ga_code filter.

Filters

sgat_output_ga_code: used to override the default user tracking setting.

Example Usage:

add_filter( 'sgat_output_ga_code', 'sgat_override_user_settings' );
function sgat_override_user_settings() {
  return true;
}


sgat_tracking_id: used to add the Tracking ID programmatically.

Example Usage:

add_filter( 'sgat_tracking_id', 'sgat_custom_ga_tracking_id' );
function sgat_custom_ga_tracking_id( $tracking_id ) {
  $tracking_id = 'UA-123456-7';
  return $tracking_id;
}


sgat_tracker_create_fields : Used to modify the information when creating the Google Analytics tracker.

Example Usage:

add_filter( 'sgat_tracker_create_fields', 'sgat_custom_tracker_create_fields' );
function sgat_custom_tracker_create_fields( $fields ) {
  $fields['siteSpeedSampleRate'] = 50;
  return $fields;
}


sgat_after_tracker : Used to add additional Google Analytics calls after the main tracker output.

Example Usage:

add_action( 'sgat_after_tracker', 'sgat_after_tracker_functionality’ );
function sgat_after_tracker_functionality() {
  echo "ga('send', 'event', 'MyCategory', 'MyAction', 'MyLabel', 50);";
}

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for measuring traffic.

Under Construction

Easy to use Under Construction Page & Coming Soon Page. Enable Under Construction Mode in seconds & sh...

Free 600k+ installs 4.8★ (1,285)
Ad Inserter

Manage Google AdSense ads, banners, ad rotation, sticky widgets, AMP ads, ads.txt, tracking, header and footer...

Free 300k+ installs 4.9★ (2,428)
MonsterInsights

The best free Google Analytics plugin for WordPress. See how visitors find and use your website so you can gro...

Free 2M+ installs 4.5★ (3,148)
Maintenance

Great looking maintenance, coming soon & under construction pages. Put your site under maintenance in minu...

Free 1M+ installs 4.4★ (860)
Header Footer Code Manager

Easily add tracking code snippets, conversion pixels, or other scripts required by third party services for an...

Free 600k+ installs 4.9★ (309)
GA Google Analytics

Adds Google Analytics tracking code to your WordPress site. Supports many tracking features.

Free 400k+ installs 4.9★ (158)