I am trying to use GA4 Advanced Tag and its beta feature ( event data ) to send events to GA4. We added a data-client with a webhook URL and sending the hits to this endpoint from our website. We included the required client_id , session_id session_number etc. Then we trigger this GA4 Advanced Tag by a trigger from our webhook call.
Our webhook payload has the client_id , session_id and session_number parameters along with eventnames etc and in server side preview I can see that it receives the hit to webook and then makes a request to https://www.google-analytics.com/g/collect?xxxx with the parameters attached.
The issue is I can not see the event in GA4 reports. I enabled the debug_mode=true and still can not see the event in GA4 debug view as well.
Since this is a server to server communication I guess it should be using measurement protocol. And the state documentation states that this tag is compatible with Google Analytics 4 Measurement Protocol, I wonder what this means? I mean shall I also include the api_secret in the tag parameters somewhere to make it work?
The events that we are trying to send are happening after the user finishes their journey and it is kind of an admin triggered events, so our aim is to fire those events by using webhooks and stape server side.
From the description it is difficult to understand what exactly is wrong with your setup, I can assume that perhaps you do not send some mandatory parameters for the event or send them incorrectly.
If you are sending your events from your backend and it is only needed for GA4 then in general there is no point in using sGTM here between this and you can send data directly to GA4 using MP:
The _dbg was already there, I added the v=2 as well and I can see it in the request URL, but no chance. I mean nothing on GA4 debug view, will wait sometime , maybe it will appear on reports.