Tiny gtag.js Analytics

May 09, 2023

Tiny gtag.js Analytics Plugin

Adds the required script tags for gtag.js to your site's HTML.

A simple, light, ad-free plugin to enable Google’s global site tag. This enables analytics and conversion tracking via gtag.js on your WordPress site. You can customise it by adding extra JavaScript, and further extend the plugin’s functionality using the provided tiny_gtag_js_analytics_output hook.

Installation

  1. Upload the entire, extracted plugin directory to the wp-content/plugins/ directory, or install the plugin through the WordPress Plugins screen directly.
  2. Activate the plugin through the Plugins screen.
  3. Go to Settings > gtag.js, add your Analyics and/or AdWords IDs, and save.
  4. Clear caches of any optimisation plugins, or CDNs you use on your site, if any.

Changelog

3.0.1

  • Fixed crash on first settings save.

3.0.0

  • Support for GA4 IDs.
  • Changed inputs to tiny_gtag_js_analytics_output filter hook, update any integration accordingly. (Does not affect typical plugin usage.)

2.0.0

  • Support for AdWords IDs.
  • Made tracking ID(s) available to other scripts via tinyGtagJsOptions global variable.
  • Link to settings from Plugins page.
  • Support output after <body> as recommended by Google.
  • Fixed filter hook.
  • Fixed i18n.

1.0.1

  • Better form validation.

Details

  • Version: 3.0.1
  • Active installations: 200
  • WordPress Version: 4.6.0
  • Tested up to: 6.2.6
  • PHP Version: 5.4.0

Ratings


5 Stars
4 Stars
3 Stars
2 Stars
1 Stars