Hey Folks,

Hey Folks, Need some help and advice, struggling a bit! I have a GA call: ga('ec:addProduct', { 'id': 1, 'name': 'test', 'category': 'test', 'brand': 'test', 'position': 1, 'dimension1': 'test' }); ga('ec:setAction', 'detail'); ga('send', 'event','eCommerce','productView'); Is My Zaraz Track equivalent below correct: zaraz.track('productView', { id: 1, category: 'test', name: 'test', brand: 'test', position: 1, dimension1: 'test', }); I do not want to use zaraz.ecommerce. Please advise.
6 Replies
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
anspan
anspanOP6mo ago
In the code that I am migrating, there is a call that says: ... ga('send', 'event','eCommerce','clickBuy'); I am not sure what zaraz.ecommerce event that would translate to. So thought it best to use the track call and send the event names as I see. 1. Can I send an event name like 'clickBuy' to zaraz.ecommerce? 2. Also, not sure how to implement an action call like >> ga('ec:setAction', 'checkout_option',{'step':1,'option':'clicBuy'}); A bit confused and hence was thinking of sticking to track. Would be grateful if you could let me know your thoughts on 1 and 2.
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
anspan
anspanOP6mo ago
Ok, for things that do not match, I will have to use 'track' if i am not mistaken? And in that spirit, does the code in my original message look ok? Thanks @yo'av for your prompt responses. Very grateful.
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
anspan
anspanOP6mo ago
yes, sure, got it 👍
Want results from more Discord servers?
Add your server