-
Connecting server-side purchases/renewals with initial ad clicks on Google Ads
Yo, anyone knows how to report conversions back to Google Ads when they happen server-side? It’s not rocket science but I’m kinda stuck.
- A user clicks a Google ad
- They get redirected to my site
- They signup for a free trial
- I report this “sign up” event back to Google Analytics (GA4) using gtag
- The sign up event is marked as an “offline” event in Google Ads
That’s all good. But then, when the trial ends and I charge the user the first time, I want to report a “renewal” event with the charge amount to help Google Ads optimize. But how do I do this?
The renewal happens server-side. While I track it using the GA4 API, I can’t figure out how to link it to the original user. This means it could be attributed correctly in GA4 and Google Ads.
It looks like I need to grab the cookies Google Ads create in the browser when the user first signs up. Then send these cookies to the server and pass them to GA4 every time a renewal happens. But there’s no documentation I can find on this.
Anyone knows how to report server-side events to GA4/Google Ads such that it’s attributed to the right user?
Note: I’m not looking to use Google Tag Manager.
Log in to reply.