André Ferraz
André Ferraz

Reputation: 1521

Google data layer data not being passed to tag manager assistant

I have setup a click event to a product page. Every time a customer clicks on a specific product the code below is triggered

dataLayer.push({
   'event': 'productClick',
   'ecommerce': {
        'click': {
              'actionField': {'list': 'WP'},
              'products': [{
                   'name': 'data',                    
                   'id': 'data',
                   'price': 'data'
               }]
         }
    }
});

I have debugged and the data is actually being pushed the the datalayer however when I use google tag assistant to check the datalayer no data is pushed.

Upvotes: 0

Views: 589

Answers (1)

nyuen
nyuen

Reputation: 8907

Use the console instead. It's more reliable and accurate. After your dataLayer push, type "dataLayer" and you should see the entire dataLayer:

enter image description here

Alternatively, if you go into GTM preview mode, you should also see the dataLayer there as well.

enter image description here

Upvotes: 2

Related Questions