Skip to content

Commit 2e9f48b

Browse files
fix query parameter format issue (#2233)
1 parent 5af3693 commit 2e9f48b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/ga4/EventBuilder/ValidateEvent/useValidateEvent.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ const sendHit = async (
5555
instanceId: InstanceId,
5656
api_secret: string
5757
): Promise<void> => {
58-
const url = `https://www.google-analytics.com/mp/collect?${instanceQueryParamFor(
58+
const url = `https://www.google-analytics.com/mp/collect?api_secret=${api_secret}${instanceQueryParamFor(
5959
instanceId
60-
)}&api_secret=${api_secret}`
60+
)}`
6161
const body = Object.assign({}, payload, {
6262
validationBehavior: "ENFORCE_RECOMMENDATIONS",
6363
})

0 commit comments

Comments
 (0)