google-tag-manager

Google Tag Manager: Tracking “Select” Drop Down Menu “Option” tag value

一世执手 提交于 2020-06-11 05:59:55
问题 I am having trouble tracking the value of the "option" tag in the "select" tag. I currently have a drop down menu for Google Translator Widget where user can click on it and select the language. When you click on the "Select Language" drop down, you will be able to see German as the option. See the attached screenshots. I have created a Macro call "JS - Google Translate - Select Option" in the Google Tag Manager. Here is the code for "JS - Google Translate - Select Option": function() { var

How to send a POST request from GTM custom tag template?

北城以北 提交于 2020-06-01 05:45:26
问题 I'm developing a simple custom tag template for Google Tag Manager. It's supposed to bind to some events and send event data to our servers as JSON in the body of a POST request. The sandboxed GTM Javascript runtime provides the sendPixel() API. However, that only provides GET requests. How one sends a POST request from within this sandboxed runtime? 回答1: You can use a combination of the injectScript and copyFromWindow APIs found here Custom Template APIs. Basically, the workflow goes like

Tracking submissions on MailChimp embedded form

天大地大妈咪最大 提交于 2020-05-15 06:26:25
问题 I'm attempting to track submissions on a embedded MailChimp form. The problem is that no form submit event is fired when the form is submitted. I think this has to do with the JQuery being used to validate the input. Here's the embed code for the form: <!-- Begin MailChimp Signup Form --> <link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css"> <style type="text/css"> #mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif

Capturing Hotjar User ID in Google Tag Manager & Google Analytics

浪子不回头ぞ 提交于 2020-04-10 16:46:13
问题 We have a setup where we capture Hotjar User ID in Google Tag Manager and then pass it as a custom dimension to Google Analytics. It's done to simply merge and cross-reference both data sources. We used the following code to capture the User ID: function() { return hj.property.get('userId'); } 2 days back we stopped receiving the data, even though there haven't been any changes to Google Tag Manage, Google Analytics or our Hotjar account. My suspicion is that there have been a system update

Google Analytics Settings value showing a “{}” in google tag manager's preview mode

泪湿孤枕 提交于 2020-03-05 06:06:29
问题 I'm facing a problem that none of the google tags fire on the website. For example, this is what I see in the page view event google analytic tag not firing successfully FYI: This is the setting of my Google Analytics variable: Google Analytics Setting Variable Here is the webpage link: https://www.canfitpro.com/convention-2020/ I'm wondering if anyone knows what is happening here and how to fix it? Thanks a lot for the help! 回答1: The subdirectory install of WP that you linked to when checked

Google Tag Manager and Single Page apps

半世苍凉 提交于 2020-02-26 09:06:42
问题 I'm trying to integrate Google Tag Manager with my Ember app. I'm having a hard time understanding how to notify GTM that the page changed, and send a page view event. I've read a lot of things online, mostly working around creating a new variable for a "virtual page" or something, but obviously this is far from ideal. I'd like to be able to just use dataLayer.push to notify the page actually changed. Is there an easy way out I didn't find or is it really a pain to track with GTM on SPA? 回答1:

Google Tag Manager and Single Page apps

让人想犯罪 __ 提交于 2020-02-26 09:06:14
问题 I'm trying to integrate Google Tag Manager with my Ember app. I'm having a hard time understanding how to notify GTM that the page changed, and send a page view event. I've read a lot of things online, mostly working around creating a new variable for a "virtual page" or something, but obviously this is far from ideal. I'd like to be able to just use dataLayer.push to notify the page actually changed. Is there an easy way out I didn't find or is it really a pain to track with GTM on SPA? 回答1:

Google Tag Manager doesn't fire events to Google Analytics

。_饼干妹妹 提交于 2020-02-08 09:10:01
问题 I'm using Xamarin.iOS and I have integrated TagManager using Google Analytics SDK (V3.10) I can see in the logs that the request is sent to Google Analytics, but It is not displayed in the dashboard. The same firing rules exits for both Android and iOS, which is always (true == true), and it works in Android great. This is the code for the class TagManager in iOS: public class IosTagManager : NSObject, ITagManager, ITAGContainerOpenerNotifier { private TAGContainer _container; public

Google tag manager : Configuration and publication ok but not able to display tag on website

梦想与她 提交于 2020-01-26 03:13:05
问题 I have configure all my GTM account and create container, tags etc... I have create a version and publish my container. And when I want to see the result on my website all my code was encapsulated in div tag with style display none and visibility hidden: <div style="display: none; visibility: hidden;"> <script>$(window).load(function(){alert("window is loaded")});</script> </div> do you know how i can fix that? 回答1: GTM loads the tags that you need separately, not inside a certain div. Check

Check the User Agent of the user that triggers a Google Tag Manager event

佐手、 提交于 2020-01-25 08:16:29
问题 I have a datalayer event push in JS and was wondering if it is also possible to learn the User-Agent of the users triggering the event. 回答1: You need to create variable which will return user agent 1) Go to Variables -> New 2) Name: User Agent 3) Type: Custom JavaScript 4) Code: function () {return navigator.userAgent;} Then you can use this variable in your tags like that {{User Agent}} 回答2: Even more simply, can't you use a "JavaScript Variable" (instead of a "Custom JavaScript" and then