Hello,
I was checking to see if this is still supported. It’s been over a year since an update.
thanks,
]]>Hi, i’m having an issue with my menu and metronet tag activated.
The menù work fine on all other pages but don’t work on portfolio pages. If you enter on the home https://www.arcacucine.it menu works fine. To make it work, I need or to refresh page, or disable the plugin. What to solve that?
]]>Hello,
I was wondering if there’s a way to make the plugin accessible by other roles on the website apart from the administrators.
It would be ideal if it can be done with the following conditions:
Hope that makes sense.
Thank you! ??
]]>Hallo,
can someone give me help, how to create events for google tag remarketing?
I am need create event:
purchase
add_to_cart
view_item
view_item_list
thank you for reply
]]>Hi There
First off all thanks for the plugin. Have been working nicely. But the last 3 months we have this permanent error in the bottom page shows this: https://dandrone.dk/kasse/order-received. When i deactivate the plugin it disappears, so the error should be related.
Do you know what it could be?
Best Regards
Lasse / Dandrone
With this plugin (latest version) active, blocks fail to preview in the new WordPress widgets interface (WordPress 5.8.1). If you simply add a block to a widget area/sidebar, it renders as “This block has encountered an error and cannot be previewed.”
]]>Hi, how to create custom WooCommerce tracking fields for:
Transaction ID
Revenue
Quantity
Product name
Hi there,
Help me please remove Metronet Tag Manager metabox on create post page and edit page. Thanks
]]>Hi there,
We just installed your plugin, tested it with one site & we got this error by Chrome…
“This page isn’t working Chrome detected unusual code on this page and blocked it to protect your personal information (for example, passwords, phone numbers, and credit cards).
Try visiting the site’s homepage.
ERR_BLOCKED_BY_XSS_AUDITOR”
What do we do? Chrome is blocking it.
Thanks
]]>Love that this plugin is still going. Very cool.
Just wondering if there is a way to output “page type” to the dataLayer. I.e: blog or blog post.
]]>I’m pasting in the google site tag into the header, and all was working in the past, however now I get the line “https://www.googletagmanager.com/gtag/js?id=UA-37910809-2″ appearing at the top of the page.
I checked the code and the line – <script async src=”https://www.googletagmanager.com/gtag/js?id=UA-37910809-2”></script>
is being changed to https://www.googletagmanager.com/gtag/js?id=UA-37910809-2
Hi,
is it possible to add the code
<?php do_action( ‘body_open’ ); ?> just after the <body>
with a code in the childthemes functions.php file?
If yes, what it is? We are not all programmers ??
I installed your plugin in my wordpress multisite and it’s working well.
However i would give you a feedback about something I note, I’m using the “Google Tag Assistant” (as Google Chrome plugin) to check that everything works well with GTM and the plugin report to me an error named “URL Encoding Error”.
When your plugin display data contained in code_head
(in function output_tag_manager_head()
) or code
(in function output_tag_manager_body()
) you filter the code with wp_kses()
that do a htmlentities()
like (ex: i go all &
transform to & ;
) and causes that error.
Hoping to help you, do not hesitate if you have questions,
Antoine.
I have tried to add a Google Optimize combined with Google Tag Manager script to HEAD, but it’s not possible since the plugin remove the STYLE tag.
This tag is part of the page hide snippet:
<style>.async-hide { opacity: 0 !important} </style>
Is it possible to not remove STYLE tags in HEAD?
]]>The correct implementation now for GTM isn’t after the opening body tag, it’s as high up in the <head>. Is this implementation available with your plugin?
]]>Hi,
I’d like to do a specialized content grouping following the example shown here: https://dcarlbom.com/google-analytics/content-grouping-with-wordpress-and-google-analytics/#gref
I’ve set all this up, and it works in Tag Manager Preview but I think the parameters are not being passed to Tag Manager because the push happens after the tag manager code.
I’ve tried placing my script before yours but that doesn’t work.
It looks like placement needs to after your datalayer script but before the google tag manager code.
Any thoughts on how I might make this work? (Apologies in advance, as I’m not a programmer).
Best,
Glenn
<script>
dataLayer = [{“title”:”Converse Annual Fund 2016-17″,”author”:”Glenn Abel”,”wordcount”:249,”logged_in”:”false”,”page_id”:209,”post_date”:”2015-09-28 15:33:12″}];
</script>
<!– Google Tag Manager –>
<noscript><iframe src=”//www.googletagmanager.com/ns.html?id=GTM-N6845M” height=”0″ width=”0″ style=”display:none;visibility:hidden”></iframe></noscript>
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
new Date().getTime(),event:’gtm.js’});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=’dataLayer’?’&l=’+l:”;j.async=true;j.src=
‘//www.googletagmanager.com/gtm.js?id=’+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,’script’,’dataLayer’,’GTM-N6845M’);</script>
<script>
var dataLayer = window.dataLayer = window.dataLayer || [];
dataLayer.push({‘pageType’: ‘Page’})
</script>
Hi guys,
we are using Newspaper 7 theme and have the Metronet plugin installed with the configuration as-is out of the box.
This is the variables GTM is picking up on one of the ads on the site: https://cl.ly/2w1Z0m19310z
The click class is blank, but I’m not sure why it’s not picking up any of these classes you can see here: https://cl.ly/0U3A0A3i1e1f
The one I want is the one that has “header” in it. This way I can setup a report in GA with click events on these classes AND the click URL, so when they change out the ad, we don’t have to reconfigure anything.
]]>I would like to implement Google Adwords Remarketing Tag in EDD powered website. Is it possible to implement following dynamic variables with this plugin:
Or if someone know another plugin that can do this?
]]>Hello…
we have added gym DataVariables items in a lot of posts and pages in 10 languages…
now we have to rename some gtm-names and -variables…
because we are talking about thousand posts, we hope that we do not have to make it in the backend of wordpress… is there a possibility to do this directly in the database?
—-
EXAMPLE OF THE RENAMING (for better understanding)
before: “event”:”productPageViewProduct”
afterwords: “event”:”familyPageView”
before: “productname”:”ABC”
afterwords: “productName”:”ABC”
—-
we have tried to rename this items in the table “postmeta” in the database – but afterward all gmt-taggs in the posts do not work any longer…
how can we handle this?
is there a solution?
Thanks for feedback
]]>It seems like it is not possible to set %category% as a variable in the plugin.
]]>Hi all. I expected returning an array be parsed into a JS array, but apparently that’s not the case with 1.0.6.
preg_replace_callback() should only be used on strings. Arrays and other structures probably just need to substituted as is.
Your thoughts?
]]>Hi Guys.
Love the plug-in. I’ve just finished setting it up on my dev environment and will shortly put live.
I was needing to output to the datalayer a delimited string of all the categories and tags on each post so that in GTM I could pick this up and Tag particular Posts according to what wp tags they have.
I tried following your instructions to add custom code within the interface but could not get it to work.
But I was easily able to follow your code setup for adding values like %post_title% to each page. And then extend it to get it add each of the following:
%post_categories%
%post_tags%
%post_type%
The tags and categories come out as a pipe (“|”) delimited string.
Only simple additions to the metronet-tag-manager.php were required to do this.
Would you be interested in adding my changes to a future version?
Ideally I would like not to have my copy of the plug-in out of sync with future updates.
I’m guessing this would be a useful addition to the plug-in for others to take advantage of.
Let me know if you would like me to share a copy of my changes?
I don’t profess to be a php or wordpress gun. So would be completely happy for you take the code and restyle as you wish.
Thanks Warren
I want to add a global variables on post/page variables:
Name: category
Value: %category%
Since this field uses the function sanitize_text_field(); it strips out the “%ca” leaving the string “tegory%”.
So I see no way to?add categories to the datalayer.
]]>I changed the code for using Rocket Loader on CloudFlare(CDN).
– add data-cfasync="false"
<!-- Google Tag Manager -->
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXXX"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<script data-cfasync="false">(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXX');</script>
<!-- End Google Tag Manager -->
But data-cfasync="false"
is removed automatically…
Can I use the code pasted ??
]]>Hi!
My posts have custom fields, for example, “Player”
What do I enter in “Value” for the value of my “Player” field to be sent to the data layer?
Thanks!
Hi. I’m using the SiteOrigin Origami theme (premium) and have successfully uploaded the tag manager to my site (www.mizukitakahshi.co.uk) with using your plugin but I can’t get it in the Header after following your instructions.
I go into the Header.php of the theme but this is what is there…
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=<?php bloginfo( ‘charset’ ); ?>” />
<title><?php wp_title(‘|’, true, ‘right’); ?></title>
<link rel=”profile” href=”https://gmpg.org/xfn/11″ />
<link rel=”pingback” href=”<?php bloginfo( ‘pingback_url’ ); ?>” />
<?php wp_head(); ?>
</head>
<body <?php body_class() ?>>
<?php do_action(‘origami_top’); ?>
<div class=”container”>
<?php do_action(‘origami_before_page_container’) ?>
<div id=”page-container”>
<?php do_action(‘origami_top_page_container’) ?>
<?php get_template_part(‘parts/logo’, ‘top’) ?>
<?php do_action(‘origami_after_logo_wrapper’) ?>
<?php get_template_part(‘parts/menu’, ‘top’) ?>
Could you help?
Thanks!
]]>After entering the object names for tracking and pressing into the post/page variables or the external variables field and pressing “save” the plugin changes the “.” character with a “-” character.
Example:
Original input: “user.segment.isLoggedIn”
Output: “user-segment-isLoggedIn”
Can you please explain me why this happens and how to fix this?
Thank you for the reply.
I installed Metronet tag Manager.
When I activate it there is an error message: “Parse error: syntax error, unexpected T_FUNCTION in /wp-content/plugins/metronet-tag-manager/metronet-tag-manager.php on line 212
I tried installing via the dashboard and manual with FTP
]]>Hi
Did an update on 19th august and this plugin crashed my site. I have now disabled it, not sure if it isn’t compatible with latest version of WP, but ended up with WSOD – couldn’t even get into my dashboard but as soon as I disabled this plugin (went through them all) my site and dashboard were immediately back up online. Thought you’d like to know.
]]>Hi! Thanks for developing this plugin!
I have a problem as my template does not have a <body> instruction typed in its HEADER.PHP. It’s a very complicated theme (BROOKLYN from themeforest).
I’ve installed your plugin in our website https://www.nsbla.com , but If you checkit, you will see I receive an error that says: “Error: <script> tag must not be included in a <div>”.
Can you help me?
THANKS A BUNCH IN ADVANCE!!
FEDE