diff --git a/src/components/ga4/EventBuilder/ValidateEvent/useValidateEvent.ts b/src/components/ga4/EventBuilder/ValidateEvent/useValidateEvent.ts index 1299183e..92674391 100644 --- a/src/components/ga4/EventBuilder/ValidateEvent/useValidateEvent.ts +++ b/src/components/ga4/EventBuilder/ValidateEvent/useValidateEvent.ts @@ -55,9 +55,9 @@ const sendHit = async ( instanceId: InstanceId, api_secret: string ): Promise => { - const url = `https://www.google-analytics.com/mp/collect?${instanceQueryParamFor( + const url = `https://www.google-analytics.com/mp/collect?api_secret=${api_secret}${instanceQueryParamFor( instanceId - )}&api_secret=${api_secret}` + )}` const body = Object.assign({}, payload, { validationBehavior: "ENFORCE_RECOMMENDATIONS", })