-
GA4 gclid custom definition help.
I am having some trouble adding gclid data to GA4 for my client. They want a report in GA4 of the PPC Keyword next to GCLID as a custom definition. I set up a tag and variable in GTM according to some support docs that I found but I don’t know if they are correct and when I try to create the custom definition in GA4 I am struggling to understand if it should be an event or user and what event parameter I should use to get the gclid to appear.
In GA4 I have it set as Scope: Event, Event Parameter: Link URL
In GTM
* Tag – GA4 Configuration, Property Name gclid, Value Page URL
* Trigger All Pages
* Tag – GA4 Event Config Tag: GA4 Config Tag, event name {{Click ID}}
* Event Parameters – Name gclid, value {{GCLID-VAR}}
* Variable – GCLID-VAR
* Variable Type URL, Component Type Query, Query Key gclidThis is the first time I’ve
set something like this up and I am seeing a lot of conflicting support material. Any help would be appriciated.
Log in to reply.