google-datalayer

List of multiple products into php datalayer

无人久伴 提交于 2021-01-29 03:26:18
问题 I would like to get a nice data layer tracking for my site's marketing pixels in the "order confirmation page" (thank you for you purchase page). The site uses OXID Shop as the ecommerce platform. I would like to have the following setup: IF currentPage == 'thankyou': products_info = '[{id: 'product_id_1', price: 'price_1', quantity: 'quantity_1'}, {id: 'product_id_2', price: 'price_2', quantity: 'quantity_2'}]' I am trying the following code to obtain the values directly from the backend if

Virtual page view issues -datalayer- GTM

我怕爱的太早我们不能终老 提交于 2020-07-23 06:53:05
问题 I'm working with this preebuild ecommerce system, all of the checkout is in an iframe. And the event below is pushed at every major step, 'checkout 1','checkout 2','payment details' and 'transaction complete' page & title reflects each steps. But NOTE the event name 'VirtualPageview' is the same for all steps mentioned above. { event: 'VirtualPageview', page: '/Test/test', title 'test | test', gtm.uniqueEventId:25 } Visual in gtm debugger: https://gyazo.com/6356cc13f6b63cad73e55d10abc90154

Virtual page view issues -datalayer- GTM

喜夏-厌秋 提交于 2020-07-23 06:52:16
问题 I'm working with this preebuild ecommerce system, all of the checkout is in an iframe. And the event below is pushed at every major step, 'checkout 1','checkout 2','payment details' and 'transaction complete' page & title reflects each steps. But NOTE the event name 'VirtualPageview' is the same for all steps mentioned above. { event: 'VirtualPageview', page: '/Test/test', title 'test | test', gtm.uniqueEventId:25 } Visual in gtm debugger: https://gyazo.com/6356cc13f6b63cad73e55d10abc90154

Virtual page view issues -datalayer- GTM

此生再无相见时 提交于 2020-07-23 06:51:18
问题 I'm working with this preebuild ecommerce system, all of the checkout is in an iframe. And the event below is pushed at every major step, 'checkout 1','checkout 2','payment details' and 'transaction complete' page & title reflects each steps. But NOTE the event name 'VirtualPageview' is the same for all steps mentioned above. { event: 'VirtualPageview', page: '/Test/test', title 'test | test', gtm.uniqueEventId:25 } Visual in gtm debugger: https://gyazo.com/6356cc13f6b63cad73e55d10abc90154

datalayer google tag manager

落花浮王杯 提交于 2020-01-06 03:22:13
问题 Iam using google tag manager it's going very well with click events but when I tried to use datalayer it's not working here is my datalayer <script> $('.tag').click(function(event){ dataLayer.push({ 'event':'myNewTransaction', 'eventCategory': 'App', //create a datalayer variable macro called eventCategory 'eventAction': 'Click', //create a datalayer variable macro called eventAction 'eventLabel': 'iOS' //create a datalayer variable macro called eventLabel }); }); And in the console when I

How does the Firebase help on firing tags in google tag management

倖福魔咒の 提交于 2020-01-03 02:55:24
问题 I am trying to understand what is the role of firebase to the google tag management. According to the GTM document Log events and variables, "your Firebase Analytics implementation acts as your data layer". And in the Fire tags section, the document mentions "Trigger conditions are evaluated whenever you log a Firebase event". My question is how this "DataLayer" Firebase Analytics triggers the other tags. Are those tags triggered by the Firebase server outside users' apps? Or the Firebase

How to you combine two dataLayer variables into one in Google Tag Manager

夙愿已清 提交于 2019-12-25 11:57:23
问题 There are two dataLayer variables on the page. How do you combine both of them into one single variable so that it can be pushed into analytics ? dataLayer current format PageName: AIR_SEARCH_PAGE Flow:BOOKING I want to create another variable which is XYZ and the result to be displayed as BOOKING:AIR_SEARCH_PAGE. How to achieve this ? XYZ:BOOKING:AIR_SEARCH_PAGE 回答1: There are several options here: Combine the strings through GTM. For example, looks like you have the following dataLayer:

GTM doesn't recognize my dataLayer but console does?

我的梦境 提交于 2019-12-25 08:00:50
问题 So I have a dataLayer created that works just fine when using the console in Chrome: In Google Tag Manager, this dataLayer doesn't exist. Why? The code I've used is below: <script> <?php global $woocommerce; $items = $woocommerce->cart->get_cart(); $dataLayer = []; foreach($items as $item => $values) { $_product = $values['data']->post; ?> <?php $dataLayer[] = [ 'itemUnitID' => $_product->ID, 'itemUnitPrice' => get_post_meta($values['product_id'] , '_price', true), 'itemQuantity' => $values

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

淺唱寂寞╮ 提交于 2019-12-22 05:21:43
问题 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