Hello,
Subject: META CAPI deduplication via sGTM
We are able to deduplicate Meta Events (excluding pageviews) ![]()
We are unable to deduplicate pageviews ![]()
The sites concerned are SPAs: Single Page Applications, i.e., they do not actually “reload” pageviews each time the page is changed):
xxx.mon-site.org (x6, 1 per region)
We use GA4 (not the “Stape Data Tag”) to transfer data from GTM web to GTM server.
For GA4, in GTM web, we use official GA4 tags.
For GA4, in GTM server, we use official GA4 tags.
For Meta, in GTM web, we use “custom HTML” tags (not a template).
For Meta, in GTM server, we use Stape.io's “Facebook Conversion API” tags:
1 in “Inherit from client” mode (Pageview)
2 in “Override” mode (Event 1 and Event 2)
We use the “Unique Event ID” variable from Stape.io
What we did in concrete terms
(screenshots available here: Issues META Deduplication — ImgBB)
• In GTM web:
-
Added event_id to the Google tag (GA4) configuration settings
“event id config parameters” image in ImgBB (link above)-
Added event_id to each GA4 Event tag
“event id ga4 tags” image in ImgBB (link above) -
Modified the three Meta “Custom HTML” tags (Pixels, Event 1, Event 2) to add event_id
“event id meta tags” image in ImgBB (link above)
-
• In GTM server:
1) Added event_id within the three META tags (“Facebook Conversion API”) from Stape
“event id meta gtm server” image in ImgBB (link above)
The problem?
For “GA4 Events” or “Meta Events,” NO problem ![]()
For “GA4 Pageviews”:
Problem 1: Within the GTM server (only), the Event_ID remains the same between different pageviews, which is not normal; it should be different
Problem 2: From the second pageview onwards, between GTM web and GTM server, the Event ID is different, when it should be the same
For “Meta Pageviews” :
Problem 1: Within GTM server (only), the Event_ID remains the same between different pageviews, which is not normal; it should be different
Problem 2: Between GTM web and GTM server, the Event ID is different, when it should be the same
How can we fix these issues, please?
Many thanks in advance,