Comments (4)
Hello!
My template doesn't add ecommerce data in existing event, it sends it's own event.
You have 2 Purchase events fired because first event it's your pixel's event (from Simo Ahava's Facebook pixel template and it has no variables forwarded to it) and second event it's my template event which has ecommerce data.
You should to fire your own FB pixel tag only on those events that are NOT tracked by mine template.
You can see events that are tracked by my template for FB pixel here: https://github.com/oleg-dirtrider/gtm_template_ga_ecommerce_data_transfer_to_remarketing_pixels#fb_pixel
For example: you can track Pageview event, AddToWishlist event, FindLocation event by your FB pixel GTM tag, but AddToCart, Purchase, Checkout you should track only by my template, because it will send events to FB itself, it will not modify events that are pushed by your own FB pixel tag.
Please tell me if this helped you.
from gtm-template-tag-google-ecommerce-data-transfer.
Thanks! It solved my problem with the Purchase event. Now it's getting all the data. The InitiateCheckout event is not firing though. It does solve my problem since I needed to get the AddToCart and Purchase events working.
If there's something I'm missing for InitiateCheckout, or something I need to check do let me know. Otherwise, things are good for me.
Grateful for your help!
from gtm-template-tag-google-ecommerce-data-transfer.
I guess that you don't have actionField object in your dataLayer.push ecommerce checkout event, because it's not necessary for checkout event.
I just updated the template, now it should track checkout events without actionField object.
Please check it, I hope it will work for you.
In actionField object you can set different event parameters, for example current step of checkout chain:
dataLayer.push({
'event': 'checkout',
'ecommerce': {
'checkout': {
'actionField': {'step': 1, 'option': 'value'},
'products': [{...}]
}
})
Usually there are several steps in checkout chain. For example: step 1 is when order page is loaded, step 2 is when user set his contacts and etc. But this parameters are not required for checkout events.
Previously, my template tracked checkout events only if the parameter 'step' was set and if it was =1. I’ll say from my experience that usually first checkout step is enough to set up remarketing.
Now after fix it should work if actionField object is not specified or if there is no 'step' parameter in actionField object.
If you will set 'step' parameter my template will work as previously: it will track checkout event only of it's first step of checkout chain.
from gtm-template-tag-google-ecommerce-data-transfer.
Thank you for your help!
from gtm-template-tag-google-ecommerce-data-transfer.
Related Issues (2)
- Display Name Length HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtm-template-tag-google-ecommerce-data-transfer.