google-tag-manager

App stops responding after resuming from background sometimes. Could Firebase be to blame?

允我心安 提交于 2019-12-19 07:58:34
问题 App stops responding every few resumes. This only happens on the release build, not the debug build. It happens on any activity, and there doesn't seem to be any pattern to it at all. I finally caught the below ANR in logcat. I'm not very familiar with Google Tag Manager, but I'm not explicitly using it in my app, but I was thinking maybe Firebase does use it for analytics. If that is the case, is there any way to turn analytics off? Any other suggestions? ANR ANR in com.levipayne.liferpg,

App stops responding after resuming from background sometimes. Could Firebase be to blame?

依然范特西╮ 提交于 2019-12-19 07:58:10
问题 App stops responding every few resumes. This only happens on the release build, not the debug build. It happens on any activity, and there doesn't seem to be any pattern to it at all. I finally caught the below ANR in logcat. I'm not very familiar with Google Tag Manager, but I'm not explicitly using it in my app, but I was thinking maybe Firebase does use it for analytics. If that is the case, is there any way to turn analytics off? Any other suggestions? ANR ANR in com.levipayne.liferpg,

Existing Google Analytics events and Google Tag Manager

夙愿已清 提交于 2019-12-18 10:33:25
问题 I have implemented Google Analytics (GA) on my site and I send several custom events through ga("send", "event", ...); function and it works well. I am experimenting with Google Tag Manager (GTM). I have removed original GA snippet, and now I use GTM to inject GA tag on my site and pageviews are tracked correctly. What does not work well are my custom events sent by ga() function. I have noticed that GA create has tracker name variable like ga("create", "UA-12345678-1", {name: "gtm0123456789"

React JS how to get script inside dangerouslySetInnerHTML executed

对着背影说爱祢 提交于 2019-12-18 04:55:06
问题 How to get script inside dangerouslySetInnerHTML get executed? class Page extends Component { render() { return ( <script dangerouslySetInnerHTML={{ __html: ` console.log('hello world'); window.dataLayer = window.dataLayer || []; window.dataLayer.push({ event: 'viewCart' }); ` }} /> ); } } I can't get console.log('hello world') executed. Anybody can help? Thank you 回答1: You can't because script tags are removed automatically for security. The best way to work with javascript is to get the

Get user data collected by Google tag manager

萝らか妹 提交于 2019-12-14 03:24:36
问题 I have a Ruby-on-Rails web application with implemented google tag manager (GTM). Assume, that some user comes to my site, surfs several pages and then sends me a feedback through feedback form. Is there any way to gather as much data as possible which is collected by GTM for current user session in order to send it together with this feedback? 来源: https://stackoverflow.com/questions/37572960/get-user-data-collected-by-google-tag-manager

Events not firing with UA and GTM - event equals gtm.js condition is not matched

喜欢而已 提交于 2019-12-14 03:17:05
问题 I've setup a Wordpress log and am using Google Tag Manager and Universal Analytics. I'm trying to track a bunch of events - all of which are outbound links. I've setup the link listener and the event code itself within GTM and tested it on github. However when I push it to the live site the events don't fire. I can track pageviews fine but the events are not being captured. I've debugged it as best I can and what I can see is that they're not firing because not all the conditions are being

How to force GTM to add tag in the <head>?

混江龙づ霸主 提交于 2019-12-14 03:05:44
问题 I've followed below steps for adding AdSense script inside of my website: Now that you have the code head over to GTM. Create a new tag. Provide a name. Select custom HTML as the tag template. Copy and paste the code into the text field. Set the trigger to fire on All pages or the pages you want to serve ads on. Click Save and Submit to push the code live. I did it and all fine. Here is my full code: (define as a tag in google tag manager) <script async src="https://pagead2.googlesyndication

Firing tags in GTM (Google Tag Manager) containers under turbolinks

感情迁移 提交于 2019-12-13 16:50:24
问题 Has anyone figured out a way to get a Google Tag Manager container to fire all its tags under Turbolinks? I'm running a rails 4.0 application (with Turbolinks) and have put the code below in a footer that I render in every page (inside the tags): <!-- Google Tag Manager --> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXX" 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':

How to open a lightbox on page load if url equals using google tag manager

会有一股神秘感。 提交于 2019-12-13 07:52:32
问题 The title pretty much says it. I would like to show a lightbox on page load only if the url is www.example.com/#popup versus www.example.com If this could be accomplished with google tag manager that would be grand I've see bits and pieces of this but I'm having trouble piecing it all together. HTML: <a href="#" data-featherlight="#mylightbox">Open element in lightbox</a> <div id="mylightbox">This div will be opened in a lightbox</div> 回答1: if (window.location.hash == "#popup") { $

How to use Google Content Experiment with Google Tag Manager

試著忘記壹切 提交于 2019-12-13 04:31:53
问题 I couldn't find any answers on how to use/implement Google Content Experiments with GTM. I currently have set-up a GTM container with GA code and in the original page for the experiment i have the Google Experiment Code at the beginning of the html tag. The problem I'm having is that not all users are counted in Google Analytics Experiments Report. Is it still impossible to use Google Content Experiments in GTM? (How to run Google Experiment within Google Tag Manager - seems a bit old