Subscribers Only
The full article plus 21 more subscriber-only posts come with a subscription.
First-party cookie based source tagging implementation to detect the real origin of purchase events showing as (direct)/(none) in GA4. GTM Custom HTML tags, cookie structure, GA4 custom dimension setup, and debug tools.
GA4's attribution model can lose source information on purchase events due to payment redirects, Safari ITP, and in-app browsers. The first-party cookie solution in this article writes UTM/gclid/fbclid information to two cookies on the landing page (dnm_src and dnm_cid), then sends it to GA4 as an event-scope custom dimension at purchase. Without touching the GA4 attribution model, it lets you see the real source as a secondary dimension in reports.
The full article plus 21 more subscriber-only posts come with a subscription.