Skip to content

Commit

Permalink
fix: domain update
Browse files Browse the repository at this point in the history
  • Loading branch information
agrim-deriv committed Oct 23, 2024
1 parent f133dc8 commit 7b036bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/Utils/Analytics/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const cacheTrackEvents = {
const cacheCookie = cacheTrackEvents.parseCookies(cookieName);
if (cacheCookie) storedCookies = cacheCookie;
storedCookies.push(data);
const domain = window.location.hostname.includes('deriv.com') ? '.deriv.com' : 'binary.sx';
const domain = window.location.hostname.includes('deriv.com') ? '.deriv.com' : '.binary.sx';
document.cookie = `${cookieName}=${JSON.stringify(storedCookies)}; path=/; Domain=${domain}`;
},
processEvent: (event: Event): Event => {
Expand Down

0 comments on commit 7b036bd

Please sign in to comment.