WordPress plugin intelligence profile

Multiple Google Analytics Trackers

Add one or more Google Analytics trackers to your website.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.8
Current version1.1.2
WordPress coverageTested up to WordPress 4.8
Minimum stackWP 4.0 · PHP —
Directory statusactive
Last directory update11 Sept 20179y ago
Active installations60Adoption metric — not a quality score
WordPress.org rating3.7 / 5 from 3 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Multiple Google Analytics Trackers version 1.1.2 as active, updated 9y ago and tested up to WordPress 4.8.

Overview

About this plugin

Minimalistic Google Analytics plugin that lets you add one or more trackers and control exactly how the script is rendered.

Rendering the script

This plugin lets you control wether the Google Analytics script is printed in the <head> -element, the <body> -element or using a custom action.

There’s also a filter available, if you want to completely override the code that prints the analytics code. This way you can use the plugin simply for storing the property ID’s in the database and manually render the analytics script exactly as your want it.

The filter for overriding the script code is ahr-google-analtyics/script_file_path and you’d use it like so:

add_filter('ahr-google-analtyics/script_file_path', function($default_path){ // return an absolute file path to the file you want to use for rendering the script }, 10, 1);

Accessing the property ids via code

If you need to manipulate the Google Analytics property ids before they are printed, then use the ahr-google-analtyics'/property_ids filter. It’ll pass you an array of property ids as its single argument.

If you need to pull the ids from the database, in any other context, you can use $property_ids = get_option( AhrGoogleAnalytics::OPTION_IDS );

This plugin will always give you an array of ids. Even if you just have one.

Source code & contributions

Please feel free to contribute improvements, report bugs or suggest new features via the GitHub repo

  • Github Repo
  • Suggest improvements
  • Open a pull request
WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • google analytics
  • statistics
  • stats
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.8

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.8.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.8
Minimum requirementsWordPress 4.0 · PHP not listed
Update activity11 Sept 20179y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.