google-tag-manager

Google Tag Manager with AngularJS?

不羁岁月 提交于 2019-12-03 04:22:51
问题 How do I use GTM with Angular? I'm trying to fire a (virtual) pageview event when I load a new partial using this code: dataLayer.push({ 'event' : 'pageview', 'pageview' : $location.path(), 'virtualUrl' : $location.path() }); But I don't see the event firing (I'm using the Google Analytics Chrome debug extension to view fired events). 回答1: I find the Chrome extension unreliable. Simply run the global variable dataLayer in the console to print the array of events. One of the objects should be

React + Router + Google Tag Manager

落爺英雄遲暮 提交于 2019-12-03 04:19:40
问题 I've been spending a bit of time developing an MVP at quickcypher.com. I wanted to start putting in some analytics, and it worked great for just tracking total visits, but things went south when I tried to track different URLs on my site that uses React Router. My approach was this: Setup a GA tag that fires on some pages, using a trigger for a custom "pageview" event. When things did fire, I would set the field page to "/rap" for example. I was firing the event in the "componentDidMount"

Can anyone help implementing Nuxt.js Google Tag Manager?

房东的猫 提交于 2019-12-03 03:11:25
Hey i've built a Nuxt app and am having trouble with the package @nuxtjs/google-tag-manager package. Found below. The documentation is pretty light and I haven't found many example implementations out there. In my nuxt.config.js I have the following set. ['@nuxtjs/google-tag-manager', { id: process.env.GTM_ID, layer: 'dataLayer', pageTracking: true }], ..but unfortunately am not getting any Page Views in Google Tag Manager Does anyone have any ideas or experience in how to best implement GTM or what has worked for them? Thanks in advance I had a look at the package, inside modules/packages

Google Analytics Event Permutation

╄→尐↘猪︶ㄣ 提交于 2019-12-02 21:30:40
since the 9th of Sep some events (about 0,01 %) and their dimensions were unreadable by permutation. Like the event "VideoView" becomes to "eiVwoediV". Does anybody have the same problem or anybody know why? The analytics is implemented via Google Tag Manager. Thanks for advice! We caught it! We luckily had a known customer who created such requests and we phoned him! We nailed it down to one Firefox plugin: https://addons.mozilla.org/de/firefox/addon/cliqz/ We could reproduce the described behaviour by installing the plugin. The strange thing is, that the add-on has not been modified recently

React + Router + Google Tag Manager

旧巷老猫 提交于 2019-12-02 18:40:19
I've been spending a bit of time developing an MVP at quickcypher.com. I wanted to start putting in some analytics, and it worked great for just tracking total visits, but things went south when I tried to track different URLs on my site that uses React Router. My approach was this: Setup a GA tag that fires on some pages, using a trigger for a custom "pageview" event. When things did fire, I would set the field page to "/rap" for example. I was firing the event in the "componentDidMount" method of the top level component for each of my views. Using the debugger, I saw the event fire as

Google Tag Manager with AngularJS?

懵懂的女人 提交于 2019-12-02 17:38:14
How do I use GTM with Angular? I'm trying to fire a (virtual) pageview event when I load a new partial using this code: dataLayer.push({ 'event' : 'pageview', 'pageview' : $location.path(), 'virtualUrl' : $location.path() }); But I don't see the event firing (I'm using the Google Analytics Chrome debug extension to view fired events). Mike Causer I find the Chrome extension unreliable. Simply run the global variable dataLayer in the console to print the array of events. One of the objects should be your pageview event. Here is an example of how we are using it: Note: we're not simply using

Fire Tag after Datalayer Values have changed

倖福魔咒の 提交于 2019-12-02 15:29:05
问题 We do have a Datalayer which looks like this: window.dataLayer = window.dataLayer || []; window.dataLayer.push({ Example1: 'false' Example2: 'false' Example3: 'false' Example4: 'false' Example5: 'false' }); We want to fire a Tag after the some values have changed, without a pagereload. When Example 1 and Example 3 are having the state true, a tag should be fired immediately. Someone told me to add an Event to the datalayer for example: window.dataLayer = window.dataLayer || []; window

Android Google Tag Manager

时光毁灭记忆、已成空白 提交于 2019-12-02 13:31:43
问题 I am implementing Google Tag Manager for Android Application V4 as requested by my Marketing team for future use,and I have never worked on GTM for websites so I am naive in this context. I have created account and Container and tags according to instructions on official site. I have linked tag manager with google analytics tracking id. I have written code in my application according to instructions on website and downloaded container to raw folder. When I run my app it gives me warning and

Find a specific line of script using JS/jQuery in GTM

浪子不回头ぞ 提交于 2019-12-02 12:45:06
I want to use Google Tag Manager (GTM) to identify if a virtual page view has been set within the Google Analytics (GA) script (which sits in the <head> ). The GA code is NOT set via GTM. The virtual page view looks like this: ga('send', 'pageview', '/virtual/example1/'); I want GTM to search specifically on every page for just ga('send', 'pageview', '/virtual Is there a line of JS or jQuery I can use to identify this line. Things like getElementById() don't work because there is no ID. Assume it might use innerHTML at some stage but not sure hot to put it all together. From the top of my head

Fire Tag after Datalayer Values have changed

余生颓废 提交于 2019-12-02 10:59:29
We do have a Datalayer which looks like this: window.dataLayer = window.dataLayer || []; window.dataLayer.push({ Example1: 'false' Example2: 'false' Example3: 'false' Example4: 'false' Example5: 'false' }); We want to fire a Tag after the some values have changed, without a pagereload. When Example 1 and Example 3 are having the state true, a tag should be fired immediately. Someone told me to add an Event to the datalayer for example: window.dataLayer = window.dataLayer || []; window.dataLayer.push({ event: 'exampleHappened', Example1: 'true' }); Is it possible to add 5 events to the