Title: Tiny gtag.js Analytics
Author: Roy Orbitson
Published: <strong>November 22, 2018</strong>
Last modified: October 29, 2025

---

Search plugins

![](https://ps.w.org/tiny-gtag-js-analytics/assets/icon-256x256.png?rev=2178931)

# Tiny gtag.js Analytics

 By [Roy Orbitson](https://profiles.wordpress.org/lev0/)

[Download](https://downloads.wordpress.org/plugin/tiny-gtag-js-analytics.3.1.0.zip)

 * [Details](https://test.wordpress.org/plugins/tiny-gtag-js-analytics/#description)
 * [Reviews](https://test.wordpress.org/plugins/tiny-gtag-js-analytics/#reviews)
 *  [Installation](https://test.wordpress.org/plugins/tiny-gtag-js-analytics/#installation)
 * [Development](https://test.wordpress.org/plugins/tiny-gtag-js-analytics/#developers)

 [Support](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/)

## Description

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.

## Reviews

![](https://secure.gravatar.com/avatar/4c76d9f6d43ca0d7f8b1f74e5f9574b3068c222281ed6e56a679049c7e7f37e0?
s=60&d=retro&r=g)

### 󠀁[awesome，helped me a lot](https://wordpress.org/support/topic/awesome%ef%bc%8chelped-me-a-lot/)󠁿

 [zengxiaoluan](https://profiles.wordpress.org/zengxiaoluan/) June 14, 2023

That plugin has saved my life

 [ Read all 1 review ](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/reviews/)

## Contributors & Developers

“Tiny gtag.js Analytics” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Roy Orbitson ](https://profiles.wordpress.org/lev0/)

[Translate “Tiny gtag.js Analytics” into your language.](https://translate.wordpress.org/projects/wp-plugins/tiny-gtag-js-analytics)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/tiny-gtag-js-analytics/),
check out the [SVN repository](https://plugins.svn.wordpress.org/tiny-gtag-js-analytics/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/tiny-gtag-js-analytics/)
by [RSS](https://plugins.trac.wordpress.org/log/tiny-gtag-js-analytics/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 3.1.0

 * Added option to limit tracking to visitors and selected roles.
 * Added option to delay main script output until `</body>`.
 * Higher min. required versions of WP and PHP.

#### 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.

## Meta

 *  Version **3.1.0**
 *  Last updated **7 months ago**
 *  Active installations **400+**
 *  WordPress version ** 5.0 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 7.3 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/tiny-gtag-js-analytics/)
 * Tags
 * [analytics](https://test.wordpress.org/plugins/tags/analytics/)[google](https://test.wordpress.org/plugins/tags/google/)
 *  [Advanced View](https://test.wordpress.org/plugins/tiny-gtag-js-analytics/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/reviews/)

## Contributors

 *   [ Roy Orbitson ](https://profiles.wordpress.org/lev0/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/tiny-gtag-js-analytics/)