Linux 软件免费装
Banner图

Metronet Tag Manager

开发者 ronalfy
pereirinha
ruskinconsulting
更新时间 2023年9月3日 00:20
捐献地址: 去捐款
PHP版本: 3.9 及以上
WordPress版本: 6.3.1
版权: GPLv2 or later
版权网址: 版权信息

标签

google google tag manager tag manager

下载

1.2.3 1.0.3 1.0.4 1.0.5 1.0.6 1.2.0 1.2.1 1.2.5 1.2.7 1.2.9 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.0.0 1.0.2 1.0.1 1.0.8 1.1.0 1.3.0 1.3.1 1.5.5

详情介绍:

Integrate Google Tag Manager into your website. The great thing about Google Tag Manager (GTM) is that you are able to gather most of your tracking scripts in one place. You can then fire these scripts whenever you want, specified by the rules you set up. This sounds great, right? Well, it is. The only problem is that sometimes it takes some time to set these rules up. This implementation can either set a dataLayer variable in the dataLayer before the tag manager script is loaded or push an HTML event handler with the variable "event" to the dataLayer when a button is clicked. The problem is that this isn’t always that easy to do when you don’t have the ability/access to add the code to your site. This is where the Metronet Tag Manager plugin shines. It unlocks the power of the dataLayer so you can easily set macros and firing rules on almost any element. This plugin lets you: Please note that for this plugin to work, a slight customization is needed. WordPress doesn’t let you load scripts straight after the opening tag, where the GTM script needs to be placed to work correctly. To fix this, you need to add <?php do_action( 'body_open' ); ?> just after the <body> tag, and that’s it.
Note, If you are using WordPress 5.2. and up, contact your theme developer and ask them to insert <?php wp_body_open(); ?> just after the opening body tag of their theme. Here is some code to show the theme developer to make it compatible with Metronet Tag Manager.
Please let us know if you have any feature requests or issues with this plugin. Below are a couple of resources you might find valuable if you are new to Google Tag Manager Official Google Tag Manager website https://developers.google.com/tag-manager/ Tracking Google Analytics Events with Google Tag Manager http://moz.com/ugc/tracking-google-analytics-events-with-google-tag-manager Make Analytics Better with Tag Management and a Data Layer http://cutroni.com/blog/2012/05/14/make-analytics-better-with-tag-management-and-a-data-layer/

安装:

  1. Just unzip and upload the "metronet-tag-manager" folder to your '/wp-content/plugins/' directory
  2. 通过 WordPress 的“插件”菜单激活插件
  3. Modify your theme's header.php to include <?php do_action( 'body_open' ); ?> right after the opening <body> tag.
  4. Go to the plugin's settings and input your Google Tag Manager data.
Note: if you are using WordPress 5.2. and up, contact your theme developer and ask them to insert <?php wp_body_open(); ?> just after the opening body tag of their theme. Here is some code to show the theme developer to make it compatible with Metronet Tag Manager.
For custom values, please see the filters section on GitHub.

屏幕截图:

  • Google Tag Manager Workspace
  • Recommended Google Tag Manager snippet
  • Google Tag Manager snippet inside the plugin

升级注意事项:

1.5.5 Compatible with Wordpress 6.1.1 1.5.4 Adding GTM dataLayer on search pages. 1.5.3 Added Beaver Builder compatibility. 1.5.2 Updating documentation. Adding option to hide GTM data layer settings on posts/pages. 1.5.1 Added support for WordPress 5.2's wp_body_open tag. 1.5.0 Added Gutenberg inline option for setting a dataLayer variable 1.3.0 Fixed a bug when saving and outputting Google Tag Manager snippets where an ampersand HTML entity was added to the output. 1.2.9 Fixed serious security issue. Please Update. 1.2.7 Fixing settings screen where documentation wasn't showing correctly. 1.2.3 Style attribute addition. 1.2.4 Compatible with Wordpress 6.1.1

常见问题:

What is Google Tag Manager

Please refer to the Google Tag Manager FAQ.

What are dataLayer variables?

Please refer to the Google Tag Manager API reference.

What are dataLayer variables used for?

The data layer is an object that contains the information that you want to pass to Google Tag Manager. By setting up rules in Google Tag Manager, these variables can then be used to include the correct snippets or scripts – for example, when a certain button is clicked.

Can I have dynamic values?

Yes. For custom values, please see the filters section on GitHub.

更新日志:

1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.0 1.3.0 1.2.9 1.2.7 1.2.3 1.2.1 1.2.0 1.1.0 1.0.8 1.0.6 1.0.5 1.0.4 1.0.3 1.0.2 1.0.1 1.0