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":"145000010",
               "revenue":295,
               "tax":"0.0000",
               "shipping":"5.0000",
               "coupon":""
            },
            "products":[{  
               "id":"ace002",
               "name":"perfume10Lt",
               "price":"295.0000",
               "quantity":"1.0000"
            }]
         },
         "currencyCode":"USD"
      },
      "event":"purchase"
   },
   {  
      "gtm.start":1438797700099,
      "event":"gtm.js"
   },
   {  
      "ecommerce":{  
         "impressions":0,
         "promoView":0
      }
   },
   {  
      "event":"gtm.dom"
   },
   {  
      "event":"gtm.load"
   }
]

Added as requested by comments: The tag seems be being called at GTM.dom so i know its definitely running.

Here is the tracking tag:

Here is the image from the trigger


回答1:


Change your trigger to fire the tag on the 'purchase' event instead. It may be failing because the ecommerce data layer hasn't been pushed yet before the gtm.Dom event happens.



来源:https://stackoverflow.com/questions/31841242/google-tag-manager-not-registering-transactions-for-enhanced-ecommerce

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!