We are sending other events normally, but when trying to create an event that is triggered via code to the stape URL, ga4 does not always receive the parameters that are sent, it only receives them sometimes.
The event is triggered by sending a POST to our stape URL with the json
{
event: “Affiliate Link Clicked”;
affId: string;
}
Testing the same parameters by sending an http request and it works perfectly
In short, the event is sent correctly to ga4, but the parameters are sent sometimes, and we have 3 things inside the event:
affid
affId
event
In the GTM tag we only send:
- Default parameters to be included: All
- Parameters to be added/edited: affid = {{AffiliateID}}