Universal Analytics events via Tag-manager not working -


i'd have regarding events-firing issue universal analytics deployed via google tag manager.
in particular, i'm attempting send 2 kinds of events on same page: checkout-purchase event (enhanced-ecommerce) , onclick generic custom one.
below page's related code, in order of onload execution:

<script>  <!--initialize datalayer-->   datalayer = [{'userid' : ...}];  <!--end datalayer-->   <!--tag manager-->   (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':.....})(window,document,'script','datalayer','gtm-...');  <!--end tag manager-->   datalayer.push({      'event': 'checkout',   'ecommerce': {     'purchase': {         'actionfield': {             'id': ...             'revenue': '1.00',              'tax': ...          },         'products': [{             'name': 'product1',             'price': '1.00',             'category': 'category 1',             'variant': 'variant1',             'quantity': 1         }]     }   },   'eventcallback': function() {         console.log("purchase pushed!");           }  }); </script>  <button onclick="datalayer.push({'event': 'eventtest'});">click me</button> 

as see, purchase event correctly pushed @ page-load.
i state "correctly" because inspecting datalayer object in browser console, revealing added purchase child object.
in addiction, @ end find simple button pushes generic "eventtest" on onclick handler. event object added datalayer "queue".
consider, these below page-load '200 status' requests concerning google:
- gtm.js?id=gtm-... [www.googletagmanager.com]
- analytics.js [www.google-analytics.com]
- collect?v=1&_v=j35&a=211135512&t=pageview... [www.google-analytics.com]

in short, seems ok.
obviously, when pushes done, no addictional requests fired, expected.
my questions is: when, , based upon what, datalayer "queue" data sent?

in fact, no events data reported in analytics panel after several days tests.
the analytics tag based upon "all pages" firing rule, in google tag manager, , "e-commerce elements", advanced ecommerce features , datalayer options, active.

is there other tag manager's options, or rules, should set in order make events collected?? should events "registered" in tag manager's console?

apologise being long , much.



update:

managed make events data collected, i'm facing issues events "labels" sent.
i mean events regularly recorded in universal analytics real-time panel, "undefined".

inspecting analytics' requests showing "undefined" values "ec" , "ea" parameters, both ecommerce object "addtocart / removefromcart" datalayer.push, , generic onclick "eventtest" one.

what might wrong these?
thanks much.

in case should send 1 hit google analytics send enhanced e-commerce data , other hit send google analytics event data.

it means should fire 3 google analytics tags on page: 1 pageview tracking (pageview type) "all pages" trigger, 1 enhanced e-commerce tracking (event type) "event equals checkout" trigger , 1 event tracking (event type) "event equals eventtest" trigger.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -