google-datalayer

Google Tag manager not registering Transactions for enhanced Ecommerce

ぐ巨炮叔叔 提交于 2019-12-10 19:51:59
问题 I am running a single page checkout and the pagevies are showing fine. however the purchase transactions doesn't seem to be being processed in Google analytics. I have the data layer up and it seems to be registering the purchase event, I have tag enabled with a page view on gtm.dom which has the enhanced ecommerce tag ticked, but still nothing . Here is the output from the Datalayer if any one can help would be really appreciative : [ { "ecommerce":{ "purchase":{ "actionField":{ "id":

GTM - One datalayer for multiple containers

柔情痞子 提交于 2019-12-10 11:28:11
问题 I use Google Tag Manager for several weeks now. Recently I had a special request and I have not found an answer. Is it possible that several containers share the same datalayer? In the Js code of two containers, I tried to give the same name to datalayer : the result is rather surprising ... All tags in each containers are executed twice. Specifically, I try to send an event in two tags which are in two different containers. I'd like to avoid having maximum countless number call on my onclick

Google Tag Manager custom javascript variable based on ecommerce datalayer object

情到浓时终转凉″ 提交于 2019-12-06 04:39:13
I'm trying to calculate the value of the shopping cart based on data contianed in the GTM datalayer ecommerce object. I'm bringing the entire ecommerce object into a datalayer variable so I can work with it in the custom js variable, but I'm unable to make the recursive calculation work. Here's an example of code from the datalayer: { "event": "checkout", "ecommerce": { "checkout": { "products": [ { "name": "coat", "id": "14M", "quantity": 1, "price": "100.00" }, { "name": "pants", "id": "12L", "quantity": 3, "price": "50.00" } ] } } }` My goal is to identifies the number of products in the

GTM - pushing events/data to gtm dataLayer not sending anything to https://www.google-analytics.com/r/collect?v

邮差的信 提交于 2019-12-05 07:50:24
I have added this gtm code in my chrome extension page(injected by the content script in and iframe) // <!-- Google Tag Manager --> (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','owDataLayer','GTM-XXXXXXX'); // <!-- End Google Tag Manager --> I confimred the gtm.js file loaded successfully. Request URL:https://www.googletagmanager

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

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