Analytics
4.9K members online now
4.9K members online now
Learn how to set up goals and Ecommerce tracking, verify accuracy of attribution traffic sources, and discuss funnel visualization, Multi-Channel Funnels, the Goal Flow Report, and Enhanced Ecommerce
 
Guide Me
star_border
Reply

Ecommerce(UA)Impression,not all Message pushed to GTM show in GA

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭
Hi, today I have pushed dataLayer contains 4 messages to GTM (Google Tag Manager) with 4 different list:
 
1) product-mostpopular

 

2) product-new 

 

3) product-onsale

 

4) browsing 

 

 

message with list name browsing is always working well, but others are not
messages with list name product-mostpopular, product-new, product-onsale sometime only show some (one or two or three list between them), sometime not show at all <-- I have tested many times before
 

(only message with list name browsing show in Google Analytics)


these list are in same page, so when page loaded, object with list name product-mostpopular pushed to dataLayer, then object with list name product-new pushed to dataLayer, then object with list name product-new pushed to dataLayer, and last object with list name browsing pushed to dataLayer
 
the format is same as UA Data Layer Impression example, all messages have triggered in GTM preview mode and Google Tag Assistant Recordings.. but not/partially show in GA (Google Analytics)
 
 
will appreciate for your helping hand...................................... Smiley Happy
1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Denver B
January 2016

Re: Ecommerce(UA)Impression,not all Message pushed to GTM show in GA

Top Contributor
# 7
Top Contributor
Hi,
just tried it and the problem is that the payload is too big (more than 8KB - Your debug will probably return an error - Error: type={0: "len", 1: 8204} method= message= account=) so it needs sequencing - split the payload in 2 or more events.

You would basically create subsequent events (same event name but multiple push will be needed) or use a reduced push only using id, position and list of the product and use data import for other info (name / price / category).

Kind regards,
Zorin
Web analyst @ escapestudio.net

View solution in original post

Re: Ecommerce(UA)Impression,not all Message pushed to GTM show in GA

[ Edited ]
Top Contributor
# 2
Top Contributor

Hi,

seems to me you are overwriting tge impressions so when the info is sent only the last impressions payload is sent.

Try:
1. Sending an event for each impressions set (this will inflate the hit count per session so be careful)
2. Combine all your impressions inside one DL push and send with an event (this is what I would do) (note that in this case you will probably need to use a custom JS / custom HTML in addition to your setup) - use this article as a base for building the logic - 
https://www.savio.no/analytics/easier-enhanced-ecommerce-product-promo-tracking


Kind regards,
Zorin

Web analyst @ escapestudio.net

Re: Ecommerce(UA)Impression,not all Message pushed to GTM show in GA

[ Edited ]
Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

Hi Zorin,

thanks for quick reply..
I have modified as you said in Try no (2)

joined list

joined list(2)

 joined list(3)

 

and follow Impression's instruction in https://www.savio.no/analytics/easier-enhanced-ecommerce-product-promo-tracking
→ list tag (within tagmanager.google.com)

 

the impression tag shows in summary

 list tag in summary

but actually it is not fired

 not fired

error occur in All Pages equal gtm.js

 all pages not fired

 

I have made sure the GTM initialization in the loaded page, it was okay with gtm.js called
notes: sorry just providing with link, not images, because of error everytime I upload photo

 

will appreciate again for your helping hand...................................... Smiley Happy

Re: Ecommerce(UA)Impression,not all Message pushed to GTM show in GA

[ Edited ]
Top Contributor
# 4
Top Contributor

Hi,

some questions:
Is your dl push with impressions placed before or after the GTM snippet?
Is the event triggered on gtm.js (All pages) for a reason - you can postpone that to a later custom GTM event dataLayer.push({'event':'push_impressions'});?

Web analyst @ escapestudio.net

Re: Ecommerce(UA)Impression,not all Message pushed to GTM show in GA

[ Edited ]
Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭

Hi Zorin,

1) DL push first, then GTM snippet

Spoiler
<html>
<head></head>
<body>

/* upper part code */
/* upper part code */
/* upper part code */

jQuery(document).ready(function(){
if (typeof objDataLayer == "undefined") {
objDataLayer = new Array();
}
objDataLayer.push(

{"id":"SUSU-DANC-006B", "name":"Dancow Madu 5+ Probiotic 800gr Box", "price":78000, "category":"Default Category", "position":1, "list":"browsing"} ,
{"id":"SUSU-PREG-001A", "name":"Pregestimil Hipoalergenik 400gr Tin", "price":253000, "category":"Default Category", "position":2, "list":"browsing"} ,
{"id":"SUSU-NAN0-010A", "name":"Nan HA 3 800gr Tin", "price":275000, "category":"Default Category", "position":3, "list":"browsing"} ,
{"id":"DIAP-MAMY-004C", "name":"MamyPoko Tape L 40", "price":92000, "category":"Default Category", "position":4, "list":"browsing"} ,
{"id":"SUSU-ENFA-002A", "name":"Enfamil A+ HA Plain 400gr Tin", "price":169000, "category":"Default Category", "position":5, "list":"browsing"} ,
{"id":"SUSU-NUTR-023A", "name":"Nutrilon 3 Madu 400gr Box", "price":72000, "category":"Default Category", "position":6, "list":"browsing"} ,
{"id":"SUSU-SIMI-004A", "name":"Isomil Plus Advance Soya 850gr Tin", "price":240000, "category":"Default Category", "position":7, "list":"browsing"} ,
{"id":"DIAP-MAMY-009B", "name":"MamyPoko Pants L 28 Boys", "price":91900, "category":"Default Category", "position":8, "list":"browsing"} ,
{"id":"SUSU-ENFA-008A", "name":"Enfagrow A+ 3 Madu 800gr Tin", "price":229000, "category":"Default Category", "position":9, "list":"browsing"} ,
{"id":"SUSU-NUTR-022A", "name":"Nutrilon 3 Vanila 800gr Tin", "price":139000, "category":"Default Category", "position":10, "list":"browsing"} ,
{"id":"SUSU-ENFA-008B", "name":"Enfagrow A+ 3 Vanila 800gr Tin", "price":229000, "category":"Default Category", "position":11, "list":"browsing"} ,
{"id":"DIAP-MAMY-001C", "name":"MamyPoko Tape NB 52", "price":92000, "category":"Default Category", "position":12, "list":"browsing"} ,
{"id":"SUSU-SGM0-008A", "name":"SGM Ananda Presinutri 1000gr Box (0-6 bulan)", "price":70680, "category":"Default Category", "position":13, "list":"browsing"} ,
{"id":"DIAP-MAMY-003C", "name":"MamyPoko Tape M 46", "price":92000, "category":"Default Category", "position":14, "list":"browsing"} ,
{"id":"SUSU-SGM0-017A", "name":"SGM Eksplor 1+ Vanila 400gr Box", "price":29760, "category":"Default Category", "position":15, "list":"browsing"} ,
{"id":"DIAP-MERR-001A", "name":"Merries Tape NB 24", "price":65500, "category":"Default Category", "position":16, "list":"browsing"} ,
{"id":"DIAP-MAMY-012B", "name":"MamyPoko Pants L 28 Girls", "price":91900, "category":"Default Category", "position":17, "list":"browsing"} ,
{"id":"DIAP-MERR-002A", "name":"Merries Tape S 24", "price":65500, "category":"Default Category", "position":18, "list":"browsing"} ,
{"id":"SUSU-SGM0-022A", "name":"SGM Ekspor 3+ Madu 400gr Box", "price":32000, "category":"Default Category", "position":19, "list":"browsing"} ,
{"id":"SUSU-SGM0-013A", "name":"SGM Ananda Presinutri 1000gr Box (6-12 bulan)", "price":76000, "category":"Default Category", "position":20, "list":"browsing"} ,
{"id":"SUSU-NUTR-021A", "name":"Nutrilon 3 Vanila 400gr Box", "price":75000, "category":"Default Category", "position":21, "list":"browsing"} ,
{"id":"SUSU-ENFA-004A", "name":"Enfamil A+ 1 Plain 800gr Tin", "price":281000, "category":"Default Category", "position":22, "list":"browsing"} ,
{"id":"SUSU-DANC-002D", "name":"Dancow Coklat 1+ DHA Probiotic 800gr Box", "price":78000, "category":"Default Category", "position":23, "list":"browsing"} ,
{"id":"SUSU-SGM0-017B", "name":"SGM Eksplor 1+ Madu 400gr Box", "price":29760, "category":"Default Category", "position":24, "list":"browsing"} ,
{"id":"DIAP-MAMY-005D", "name":"MamyPoko Tape XL 50", "price":150000, "category":"Default Category", "position":25, "list":"browsing"} ,
{"id":"DIAP-PAMP-006A", "name":"Pampers Active Baby Pants Diapers M 56", "price":146000, "category":"Default Category", "position":26, "list":"browsing"} ,
{"id":"SUSU-SGM0-022C", "name":"SGM Eksplor 3+ Vanilla 400gr Box", "price":32000, "category":"Default Category", "position":27, "list":"browsing"} ,
{"id":"DIAP-MAMY-003D", "name":"MamyPoko Tape M 72", "price":150000, "category":"Default Category", "position":28, "list":"browsing"} ,
{"id":"FOOD-MILN-003B", "name":"Milna Toddler Biscuit Coklat 12+ 110gr", "price":12500, "category":"Default Category", "position":29, "list":"browsing"} ,
{"id":"SUSU-SGM0-007A", "name":"SGM Ananda Presinutri 400gr Box (0-6 bulan)", "price":31620, "category":"Default Category", "position":30, "list":"browsing"} ,
{"id":"DIAP-MERR-004B", "name":"Merries Tape L 32", "price":111500, "category":"Default Category", "position":31, "list":"browsing"} ,
{"id":"DIAP-PAMP-007B", "name":"Pampers Active Baby Pants Diapers L 44", "price":146000, "category":"Default Category", "position":32, "list":"browsing"} ,
{"id":"SUSU-ANMU-002B", "name":"Anmum Infacare 2 Plain 900gr Tin", "price":281000, "category":"Default Category", "position":33, "list":"browsing"} ,
{"id":"DIAP-MERR-006A", "name":"Merries Pants L 22", "price":101000, "category":"Default Category", "position":34, "list":"browsing"} ,
{"id":"SUSU-MORI-024A", "name":"Morinaga Chil School Coklat 2x400gr Box", "price":114000, "category":"Default Category", "position":35, "list":"browsing"} ,
{"id":"SUSU-SUST-002A", "name":"Sustagen Junior 1+ Madu 800gr Tin", "price":109000, "category":"Default Category", "position":36, "list":"browsing"} ,
{"id":"DIAP-MAMY-008B", "name":"MamyPoko Pants M 34", "price":91900, "category":"Default Category", "position":37, "list":"browsing"} ,
{"id":"SUSU-SGM0-027A", "name":"SGM Soya Presinutri 3 Vanila 400gr Box", "price":51000, "category":"Default Category", "position":38, "list":"browsing"} ,
{"id":"SUSU-FRIS-001A", "name":"Frisian Flag Bendera Bubuk Full Cream 800gr Box", "price":66000, "category":"Default Category", "position":39, "list":"browsing"} ,
{"id":"DIAP-MAMY-006B", "name":"MamyPoko Tape XXL 28", "price":89000, "category":"Default Category", "position":40, "list":"browsing"} ,
{"id":"SUSU-NUTR-035B", "name":"Nutrilon 4 Madu 800gr Tin", "price":125000, "category":"Default Category", "position":41, "list":"browsing"} ,
{"id":"DIAP-MAMY-002C", "name":"MamyPoko Tape S 50", "price":91000, "category":"Default Category", "position":42, "list":"browsing"} ,
{"id":"DIAP-MAMY-007B", "name":"MamyPoko Pants S 38", "price":89000, "category":"Default Category", "position":43, "list":"browsing"} ,
{"id":"DIAP-MAMY-004D", "name":"MamyPoko Tape L 62", "price":150000, "category":"Default Category", "position":44, "list":"browsing"} ,
{"id":"SUSU-SGM0-012A", "name":"SGM Ananda Presinutri 400gr Box (6-12 bulan)", "price":31200, "category":"Default Category", "position":45, "list":"browsing"} ,
{"id":"SUSU-SUST-004A", "name":"Sustagen Kid 3+ Madu 800gr Tin", "price":122000, "category":"Default Category", "position":46, "list":"browsing"} ,
{"id":"SUSU-ANMU-004B", "name":"Anmum Essential 4 Vanila 750gr Tin", "price":187000, "category":"Default Category", "position":47, "list":"browsing"} ,
{"id":"DIAP-MERR-007A", "name":"Merries Pants XL 19", "price":101000, "category":"Default Category", "position":48, "list":"browsing"} ,
{"id":"DIAP-NEPI-001A", "name":"Nepia Pants L 30", "price":118500, "category":"Default Category", "position":49, "list":"browsing"} ,
{"id":"SUSU-NUTR-034A", "name":"Nutrilon 4 Vanila 400gr Box", "price":65000, "category":"Default Category", "position":50, "list":"browsing"} ,
{"id":"FOOD-MILN-004I", "name":"Milna Goodmil Peach Strawberry Jeruk 9+ 120gr", "price":21000, "category":"Default Category", "position":51, "list":"browsing"} ,
{"id":"DIAP-PAMP-008A", "name":"Pampers Active Baby Pants Diapers XL 36", "price":146000, "category":"Default Category", "position":52, "list":"browsing"} ,
{"id":"SUSU-S260-001A", "name":"S-26 Tahap 1 400gr Box", "price":103000, "category":"Default Category", "position":53, "list":"browsing"} ,
{"id":"DIAP-NEPI-003A", "name":"Nepia Tape Newborn 84", "price":163000, "category":"Default Category", "position":54, "list":"browsing"} ,
{"id":"FOOD-MILN-001F", "name":"Milna Biscuit AA+DHA Original 6+ 130gr", "price":14000, "category":"Default Category", "position":55, "list":"browsing"} ,
{"id":"DIAP-MAMY-010B", "name":"MamyPoko Pants XL 24 Boys", "price":89000, "category":"Default Category", "position":56, "list":"browsing"} ,
{"id":"HAIR-CUSS-002B", "name":"Cussons Baby Hair Lotion Kemiri, Aloe Vera, Seledri 100ml", "price":18200, "category":"Default Category", "position":57, "list":"browsing"} ,
{"id":"DIAP-MAMY-010C", "name":"MamyPoko Pants XL 46 Boys", "price":145000, "category":"Default Category", "position":58, "list":"browsing"} ,
{"id":"DIAP-MERR-005A", "name":"Merries Pants M 28", "price":101000, "category":"Default Category", "position":59, "list":"browsing"} ,
{"id":"DIAP-MAMY-008C", "name":"MamyPoko Pants M 64", "price":145000, "category":"Default Category", "position":60, "list":"browsing"}
);

var ecommerceData = {
   "ecommerce" :
   {
   "impressions" : objDataLayer,
   "currencyCode":"IDR"
   },
   'event': 'impression', // GTM Event for Impression tracking
   'eventCategory':'Ecommerce','eventAction':'Impression'
   };
   dataLayer.push(ecommerceData);
});

/* lower part code */
/* lower part code */
/* lower part code */

<!-- Google Tag Manager -->
<script>(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=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5K5HJS');</script>
<!-- End Google Tag Manager -->

/* lower part code */
/* lower part code */
/* lower part code */

</body>
</html>

2) No, I set fired to All Pages because I just want to see it works

Re: Ecommerce(UA)Impression,not all Message pushed to GTM show in GA

[ Edited ]
Visitor ✭ ✭ ✭
# 6
Visitor ✭ ✭ ✭

ah, I just changed the impression's tag Fire On, then it fired
impression tag fired

impression tag fired(2)


now I am waiting for changes on analytics.google.com

 

Marked as Best Answer.
Solution
Accepted by topic author Denver B
January 2016

Re: Ecommerce(UA)Impression,not all Message pushed to GTM show in GA

Top Contributor
# 7
Top Contributor
Hi,
just tried it and the problem is that the payload is too big (more than 8KB - Your debug will probably return an error - Error: type={0: "len", 1: 8204} method= message= account=) so it needs sequencing - split the payload in 2 or more events.

You would basically create subsequent events (same event name but multiple push will be needed) or use a reduced push only using id, position and list of the product and use data import for other info (name / price / category).

Kind regards,
Zorin
Web analyst @ escapestudio.net