Reputation: 517
I want to use the sign_up event as a conversion goal in Google Ads. I'm using Firebase for auth and for sending client-side events to GA4, but it doesn't look like sign_up is sent by Firebase.
I have GA4 configured as a destination in Segment and plan to send the sign_up event server-side to Segment. Segment sends events to GA4 using the Google Measurement API. I need to include the Google Ad ID in the sign_up event so that it is recorded properly as a Google Ads conversion. However, I cannot find anywhere in Google's documentation how to set this parameter. Does anyone know how to set Google Ad ID (gclid) when sending an event using Google Measurement API?
Upvotes: 6
Views: 4857
Reputation: 968
This is actually set on the Google Ads end. For each account sending traffic to your site, you need to go to the settings (top level) and check the "Enable Auto Tagging" box. This will append the gclid to each ads click.
Alternatively, you can add it as a custom parameter in your campaigns but it's easier to just add it at the account level.
Bear in mind though that if you do enable it, you don't need to pass this back to GA. GA will automatically pick it up for you.
Upvotes: 2