google-tag-manager

Firing Tags when a Virtual Page View occured

只愿长相守 提交于 2019-12-11 16:32:12
问题 We've created a multistep form and added virtual page views for the steps and confirmation page. Is there a way to use these virtual page views in Tag Manager to fire some tags? In Google Tag Assistant I do see the pageviews being tracked in Analytics, but the tags aren't fired when I used these pageviews to be the trigger. The virtual page views are hardcoded, not done through Tag Manager. 回答1: Virtual page views is a virtual concept :) Depending on how it is implemented: If URL doesn't

Google Tag Manager Not Sending Ecommerce Data to Analytics (Standard Ecommerce)

牧云@^-^@ 提交于 2019-12-11 15:39:33
问题 I have been racking my brain on this one and not sure why our Google Tag Manager code isn't sending data to our Google Analytics account. I have researched multiple questions on here that have similar issues, but haven't worked for me. In addition this is a great guide I've followed https://www.analyticsmania.com/post/ecommerce-tracking-with-google-tag-manager/ - but still no luck in sending the ecommerce data to GA. Below is the data layer that we're using on our /ticketing/confirm/ page

How to extract firebase user parameter and send to google analytics via google tag manager?

可紊 提交于 2019-12-11 15:35:11
问题 I'm trying to figure out how to extract the very common and auto generated user property, "first_open_time" from firebase and send to GA. This is in the context of a mobile app (iOS/Android) - I have already implemented tag manager sdk, firebase sdk quite some time ago and can successfully send any events that we generate from the ios and android clients to firebase, and use the tagmanager to send them to ga. However, anytime I try to do the same with any of the free firebase events, such as

Passing UTM Tags to Google Analytics with Google Tag Manager in Javascript not working

丶灬走出姿态 提交于 2019-12-11 14:40:06
问题 I'm trying to send utms (medium, source) to Google Analytics directly in Javascript code (not via the URL), for every visit to my page. This is how I'm trying to do it: <script async src="https://www.googletagmanager.com/gtag/js?id=UA-52626777-6"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('set', { 'campaignName':'MyCampaignName', 'campaignMedium':'MyMedium', 'campaignSource':'MySource' }); gtag('config

Listening google events

风流意气都作罢 提交于 2019-12-11 13:49:13
问题 Could you tell me, how can I listening google analytics (google tag manager) event with native javascript? For example: The client sent this event ga('send', 'event', [eventCategory], [eventAction], [eventLabel], [eventValue]); I need to subscribe to this event. 回答1: You can use tasks, which allow you to hook into the Google Analytics tracker's execution routine, for instance, hook into the sendHitTask to retrieve the payload of every hit sent: ga('create', 'UA-XXXXX-Y', 'auto'); ga(function

What is the pattern used by Google Tag Manager in order to observe de `dataLayer` Array?

时光毁灭记忆、已成空白 提交于 2019-12-11 12:43:56
问题 I observed the dataLayer array and I don't see any changes to push . No custom methods at all, actually. How is GTM observing the changes to the array? As far as I know, changes to an Array don't throw any events, do they? Edit: I did some more research and found Google's library for interacting with the dataLayer : https://github.com/google/data-layer-helper#listening-for-messages I'll take a look at the code and maybe even answer my own question if I understand the ineer workings. 回答1:

GTM / GA / Enhanced Ecommerce setup Best practices help is needed

拥有回忆 提交于 2019-12-11 12:05:22
问题 I am new in dealing with GTM /GA / Enhanced Ecommerce tracking and seeking some advice on best practices. We will soon be implementing multiple sites (each having different locale) below is the example of the sites domain structure : www.mysite.com/uk- UK www.mysite.com/de- german www.mysite.com/in - india Here is the approach that i think will work out best...i am planning to set one GTM Account since parent company is same (mysite) but different GTM containers (one for each country) We will

Load Google Tag Manager Synchronously

自作多情 提交于 2019-12-11 11:58:57
问题 I have searched Google Tag Manager (GTM) documentation and did not find anything addressing this issue. I'm working with an affiliate network who wants their tracking pixel to be loaded synchronously to ensure that it fires before the content of the page loads. This only applies to our order confirmation page. We've implemented GTM so we can launch and fix tags in 5 minutes versus 2 weeks. GTM is installed at the top of our order confirmation page and loads tags asynchronously so I know that

How do I fire a tag in GTM when a value appears in my data layer?

百般思念 提交于 2019-12-11 11:57:47
问题 My website loads values into my data layer after the website loads. I'd like to fire tags when certain values appear in my data layer, and incorporate my data layer items into the tag (for example, an order id). How can I achieve this? Thanks! 回答1: I assume you are doing a "push" to the dataLayer. Push a variable with the key "event" along with your orderid: dataLayer.push({ 'orderid' : '12345', 'event' : 'myEvent' }); Then create a trigger type custom event where " event name equals myEvent

Crash after manually updating GoogleTagManager to 7.1.1

我们两清 提交于 2019-12-11 10:58:25
问题 NOTE : We use cocoapods to get the GoogleTagManager frameworks via a separate project, and then manually integrate the static frameworks into our Swift Project. With GoogleTagManager(6.0.0), our app is working fine, same for the GTM features. Now that we are planning to implement FirebaseMessaging , we decided to update GTM first so we can also use the latest version of FirebaseMessaging . Our pod file looks like this: target 'SampleProject' platform :ios, '10.0' pod 'GoogleTagManager' Here