Tiny gtag.js Analytics
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
- Upload the entire, extracted plugin directory to the
wp-content/plugins/directory, or install the plugin through the WordPress Plugins screen directly. - Activate the plugin through the Plugins screen.
- Go to Settings > gtag.js, add your Analyics and/or AdWords IDs, and save.
- Clear caches of any optimisation plugins, or CDNs you use on your site, if any.
Reviews
awesome,helped me a lot
By zengxiaoluan on June 14, 2023
That plugin has saved my life
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_outputfilter 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
tinyGtagJsOptionsglobal 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.