Skip to content
ceaksan
SUBSCRIBERS ONLY analytics

Carrying a Banner Click to the Purchase: Item Enrichment with sGTM, Firestore and BigQuery

In sGTM, information carried by one event can be stored in Firestore and written server-side onto the items of a later event from the same visitor. This post applies item enrichment to the gap left by GA4 not carrying promotion data between events: select_promotion is written to Firestore under the GA client_id key and added to matching items when purchase arrives. Architecture, setup and BigQuery reading are shown on a sample flow for banners that lead to a product and to a collection.

TL;DR

In sGTM, context carried by one event can be stored in Firestore under a key and written onto the items of later events. With client_id as the key, the carry stays within one browser; with user_id or another stable identifier, it can work across devices. Here, item enrichment carries the promotion data GA4 drops from select_promotion to purchase items under the client_id key, verified with the BigQuery export; Promotions report quantity and item revenue matched the export.

Subscribers Only

The full article plus 26 more subscriber-only posts come with a subscription.

Feedback

Share your thoughts on the selected paragraphs. Email is required so I can reply.

Type