Skip to content

Commit

Permalink
feat (@jitsu/js): Fix prettier formatting errors (#1159)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeremyanin authored Dec 17, 2024
1 parent dd2a5e6 commit 66d528b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libs/jitsu-js/__tests__/playwright/cases/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
window.jitsuConfig = {
cookieCapture: {
ttp: "_ttp",
}
},
};
window.testOnload = async j => {
j.identify("john-doe-id-1", { email: "[email protected]" });
Expand Down
4 changes: 2 additions & 2 deletions libs/jitsu-js/src/analytics-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ function getClientIds(runtime: RuntimeFacade, customCookieCapture: Record<string
fbc: "_fbc",
fbp: "_fbp",
...customCookieCapture,
}
};
const clientIds = Object.entries(cookieCapture).reduce((acc, [key, cookieName]) => {
acc[key] = runtime.getCookie(cookieName);
return acc;
}, {});
return {
...clientIds,
...getGa4Ids(runtime),
}
};
}

function getGa4Ids(runtime: RuntimeFacade) {
Expand Down

0 comments on commit 66d528b

Please sign in to comment.