- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
02-10-2023 06:06 AM
Hello All -
I am working on setting up Facebook CAPI and i have recently updated our Facebook Pixel to set Generate Event Id to true. I am firing the FB tag on all Pages and the Tealium Collect tag on all pages.
Additionally i am running the latest version of the Tealium Collect tag.
I can step through the FB tag code in the browser and see this line getting set successfully on every page.
window.utag.globals[b.tealium_random]["fb_event_id_" + event_name + "_" + id] = event_id;
However i have noticed that only a subset of all my events have the fb_event_id set when i watch the events in Event Stream -
Additionally i can watch my specific dev env. events where i hit the code above and still see the events come into Event Stream without the fb_event_id set?
I can also sometime just hit refresh on my page in the browser and the next event might have the fb_event_id set (which makes it feel like a timing issue or something else?)
Any ideas on how i might debug this? thanks!
02-10-2023 07:27 AM
I figured this out - so i thought i would post the solution just in case has the same issue in the future.
In this case, my Tealium Collect tag was firing just before (or at the same time as) my FB Pixel tag. Sometimes the FB would complete successfully before the Tealium Collect code (thus why "some" of my events were getting the fb_event_id* set and others not)
Once i moved the Tealium Collect tag to very end of the tag load order - all the events started working successfully.
Sigh - it is always the little stuff that trips me up :-D
2 weeks ago
Copyright All Rights Reserved © 2008-2023