FaceBook Pixel - Generate Event Id not populating consistently?

Bronze Contributor
Bronze Contributor

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!

Marielle

2 REPLIES 2

FaceBook Pixel - Generate Event Id not populating consistently?

Bronze Contributor
Bronze Contributor

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

thanks

Marielle

FaceBook Pixel - Generate Event Id not populating consistently?

Silver Contributor
Silver Contributor
Thank you for sharing your solution, this was very helpful!
Public