Skip to content

Commit

Permalink
Merge pull request #8 from managed-components/ZRZ-972
Browse files Browse the repository at this point in the history
ZRZ-972 add gclid and fbclid properties
  • Loading branch information
ad-astra-via authored Apr 8, 2024
2 parents c8359ad + af05d84 commit 3e0e5cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ const getRequestBodyProperties = (event: MCEvent, token: string) => {
event.client.userAgent
).getResult()
const cookieData = handleCookieData(client, token, $identified_id)

return {
token,
$device_id: cookieData.$device_id,
Expand All @@ -124,6 +123,8 @@ const getRequestBodyProperties = (event: MCEvent, token: string) => {
$browser_version: browser.version,
$os: os.name,
$device: device.model,
$gclid: client.url.searchParams.get('gclid'),
$fbclid: client.url.searchParams.get('fbclid'),
}
}

Expand Down

0 comments on commit 3e0e5cf

Please sign in to comment.