Unie ID for Dedup not the same in GA and Facebook

Hi,

I’m trying to setup the event deduplication, and have installed the Unique Event ID variable into my Tag Manager Setup. I have then added the variable into the GA tag, and the Facebook tag. The idea is that the GA tag is managed server-side, and the event ID is ingested into the server-side FB tag. All that works well.

My problem is weird though: when I debug the web container, I see a different unique ID value in the FB and GA tag. Obviously that’s not good since the value should be the same.

I attach a bunch of screenshots showing the tag set up and the tag runtime values.
Could someone point out why the values of the “Unique ID” is different? It does fire on the same “Event: Container Loaded” event so I’d expect the same value. What am I missing?

Thanks

Sorry, can’t put more than 1 image per post…

Basically, I would have expected that the variable would have a unique value for each event fired (so 1 for “DOM Loaded”, 1 for “Window Loaded”, etc.) but would stay the same for all TAGS across a single event - that’s the idea right?

Hi @Greg_Frileux

I don’t remember if this situation was already discussed but if you do this configuration it solves the problem

Google Tag activates consent initialization

Page View Tag and Pixel Tag both with All Pages trigger

Thank you Enrico.
I do have both tags with “All pages” trigger, and I do see them triggering at the same event step called “Event: Container Loaded”.
Not completely sure what you mean by “Google Tag activates consent initialization” : do you mean selecting an option in this section of the Tag Manager UI? (see screenshot). I tried the “No additional consent required” just now but still have the same issue of the ID being different between FB and GA4

Thanks!

Hi again,

In fact, consent has nothing to do with your request.
I attach two screens

Inside GTAG I deleted the event id

Inside the Facebook and GA4 event instead insert the id event parameter.

Obviously to work they must have the same trigger.

Hey, again, thanks for the help.
The two tags already have the same trigger, and both have the “once per page” setting also matching.. so hence the confusion..

deleted here event_id parameters and change the trigger. Initialization - All Pages no All Pages

Add pageviews tag with event_id and change the trigger. All Page how Facebook Pixel

Your problem is releted to Tag Sequencing, don’t use it.
Also Google Optimize was closed over a year ago, you can delete this tag :slight_smile:

2 Likes

Yay !! Success !
I removed the Google Optimise which indeed is long deprecated, and now it works as expected. Thanks so much for the help, super happy it all works now.