Google Tag Manager 4 WordPress
Adds Google Tag Manager to WordPress, with Enhanced E-commerce support, and more!
★ 0stars
2forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/monkishtypist/gtm4wp/archive/refs/heads/master.zipFrom the readme
Google Tag Manager 4 WordPress #
Adds Google Tag Manager container to WordPress. Includes dataLayer markup for Enhanced E-commerce support for WooCommerce, and Dynamic Remarketing tags for AdWords.
Installation ##
1. Download this plugin
2. Upload to your site /wp-content/plugins/gtm4wp
3. Activate the "Google Tag Manager 4 WordPress" plugin
4. Go to the "Google Tag Manager" Settings page to add your Container and optional Brand code.
5. If your theme uses Theme Hooks Alliance action hooks, then you are done!
6. If it doesn't, and if you do not see the noscript output below your opening tag, then you will need to edit your theme's header.php file and add right below the opening tag.
Usage ##
Go to Settings - Google Tag Manager and add your Google Tag Manager container ID and save.
Adds latest version of GTM container code and dataLayer JavaScript object using wphead hook.
If your theme does not support Theme Hooks Alliance action hook thabodytop, add to your theme, right after the opening tag. This will allow Tag Manager's tag to be correctly output.
To disable GTM, disable the plugin.
Enhanced Ecommerce ##
GTM4WP uses Google's enhanced ecommerce dataLayer object. Fo
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| 3.0.0 | Feb 2, 2017 |
| 2.2.5-centurion | Feb 1, 2017 |
| 2.2.4 | Dec 19, 2016 |
| 2.2.3 | Dec 13, 2016 |
| 2.2.2 | Dec 13, 2016 |
| 2.2.1 | Dec 13, 2016 |
| 2.2.0 | Dec 13, 2016 |
| 2.1.4 | Dec 12, 2016 |
| 2.1.3 | Dec 12, 2016 |
| 2.1.2 | Dec 12, 2016 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.