google-tag-manager

Existing Google Analytics events and Google Tag Manager

女生的网名这么多〃 提交于 2019-11-29 22:19:09
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", allowLinker: false}); and Google Analytics Debugger extension for Google Chrome reports Command

Track localhost on Analytics in Google Tag Manager

纵饮孤独 提交于 2019-11-29 18:54:36
问题 I have a problem with tracking Google Analytics on localhost with Google Tag Manager. I can see on the API for Analytics ( https://developers.google.com/analytics/devguides/collection/analyticsjs/advanced#localhost), all i need to do is to set cookieDomain to none. I do not find this option in Google Tag Manager. Does anyone know how to do this? 回答1: The documentation referenced it is about the Universal Analytics (new GA API version). To solve this problem, you have two options: 1) Using the

What is the difference between google tag manager and google analytics?

不打扰是莪最后的温柔 提交于 2019-11-29 18:43:15
I am reading about web analytic and came across GTM and GA. It seems that GA is a service provided by google which generates reports and statistics on website traffic. As per my limited understanding in order to generate this reports we need to perform some type of tagging at our end. It also looks like that in GTM also we need to add some tags in our website. So, if both GA & GTM are related to tagging what is the difference between them and why do we have two different products by google. Alexander Taylor Google Analytics ' main job is really just generating the reports and statistics about

Linkwise Affiliate integration in Woocommerce thankyou page

青春壹個敷衍的年華 提交于 2019-11-29 16:25:48
I have a Woocommerce store and I like to send an order completion data to an affiliate and they ask me to include the following code: <script> lw("setCurrency", "numeric currency code, e.g. 978 for Euro"); lw("addItem", { id: "ID (as given in the XML) of first product in order" ,price: "unit price of first product, without VAT e.g. 13,49" ,quantity: "quantity of first product" ,payout: "1" }); lw("addItem", { id: "ID (as given in the XML) of second product in order" ,price: "unit price of second product, without VAT e.g. 25,16" ,quantity: "quantity of second product" ,payout: "1" }); // more

How to configure Android Google Tag Manager v4 with Google Analytics (Universal Analytics)

こ雲淡風輕ζ 提交于 2019-11-29 08:07:56
I'm trying to use Google Tag Manager to report screenviews and events to Google Analytics. I followed the google's tutorial but I'm not able to even report the screenviews. Also spent hours searching in google but there was no match. Almost all the information available is for Android's v3 or the old GTM web interface. This is my configuration Pushing the event to the data layer throws no error. However screenName seems not been sent. Java code public static void pushScreenViewEvent(@NonNull Context context, @NonNull String screenName) { DataLayer dataLayer = TagManager.getInstance(context)

React JS how to get script inside dangerouslySetInnerHTML executed

南楼画角 提交于 2019-11-29 07:41:04
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 You can't because script tags are removed automatically for security. The best way to work with javascript is to get the string separately and execute (or eval) it from componentWillMount or componentDidMount class Page extends

_googWcmGet callback not working via GTM with dynamic phone number

佐手、 提交于 2019-11-29 01:49:37
问题 I'm trying to get Adwords Call Conversion tracking working on my site, using GTM. Everything is set up on the Adwords side (call extensions + call from website conversion) but the replace function still isn't working. <script type="text/javascript"> // the code from adwords, loads the _googWcmGet function (function(a,e,c,f,g,b,d){var h={ak:"XXXXXXX",cl:"XXXXXXXX"};a[c]=a[c]||function(){(a[c].q=a[c].q||[]).push(arguments)};a[f]||(a[f]=h.ak);b=e.createElement(g);b.async=1;b.src="//www.gstatic

Failed to execute 'postMessage' on 'Window' GoogleTagManager

旧城冷巷雨未停 提交于 2019-11-28 19:58:52
问题 Recently, I get this postMessage couldn't be cloned error. It is happening on most of the latest browsers like Chrome 68, Firefox 61.0, IE11, Edge. Failed to execute 'postMessage' on 'Window': function (a){if(qe.$a.hasOwnProperty(a))return qe.$a[a]} could not be cloned. The stack trace is: Error: Failed to execute 'postMessage' on 'Window': function (a){if(qe.$a.hasOwnProperty(a))return qe.$a[a]} could not be cloned. at _reportEvent (eval at (:1:35637), :94:35) at eval (eval at (:1:35637),

What is the difference between google tag manager and google analytics?

隐身守侯 提交于 2019-11-28 13:34:18
问题 I am reading about web analytic and came across GTM and GA. It seems that GA is a service provided by google which generates reports and statistics on website traffic. As per my limited understanding in order to generate this reports we need to perform some type of tagging at our end. It also looks like that in GTM also we need to add some tags in our website. So, if both GA & GTM are related to tagging what is the difference between them and why do we have two different products by google.

Linkwise Affiliate integration in Woocommerce thankyou page

跟風遠走 提交于 2019-11-28 11:18:50
问题 I have a Woocommerce store and I like to send an order completion data to an affiliate and they ask me to include the following code: <script> lw("setCurrency", "numeric currency code, e.g. 978 for Euro"); lw("addItem", { id: "ID (as given in the XML) of first product in order" ,price: "unit price of first product, without VAT e.g. 13,49" ,quantity: "quantity of first product" ,payout: "1" }); lw("addItem", { id: "ID (as given in the XML) of second product in order" ,price: "unit price of