Skip to content

Commit

Permalink
chore: url attribute to growthbook
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuzhy-Deriv committed Oct 30, 2024
1 parent 446d037 commit 0db7034
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/javascript/_common/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@ const Analytics = (() => {
const init = () => {
if (process.env.RUDDERSTACK_KEY && process.env.GROWTHBOOK_CLIENT_KEY) {
DerivAnalytics.Analytics.initialise({
growthbookKey : process.env.GROWTHBOOK_CLIENT_KEY, // optional key to enable A/B tests
rudderstackKey: process.env.RUDDERSTACK_KEY,
growthbookKey : process.env.GROWTHBOOK_CLIENT_KEY, // optional key to enable A/B tests
rudderstackKey : process.env.RUDDERSTACK_KEY,
growthbookOptions: {
attributes: {
url: window.location.href,
},
},
});
}
};
Expand Down

0 comments on commit 0db7034

Please sign in to comment.