Skip to content

Commit

Permalink
fix: remove country property as its built in to the analytics package
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-hosseini-deriv committed Sep 3, 2024
1 parent c66bc1e commit e8dcc9e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/core/src/Utils/Analytics/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Analytics } from '@deriv-com/analytics';
import * as Cookies from 'js-cookie';
import Cookies from 'js-cookie';
import { getLanguage } from '@deriv/translations';
import { LocalStore, getAppId } from '@deriv/shared';
import { MAX_MOBILE_WIDTH } from '../../Constants';
Expand Down Expand Up @@ -34,8 +34,6 @@ export const AnalyticsInitializer = async () => {
device_type: window.innerWidth <= MAX_MOBILE_WIDTH ? 'mobile' : 'desktop',
device_language: navigator?.language || 'en-EN',
user_language: getLanguage().toLowerCase(),
country:
Cookies.getJSON('clients_country') || Cookies?.getJSON('website_status')?.clients_country,
utm_source: ppc_campaign_cookies?.utm_source,
utm_medium: ppc_campaign_cookies?.utm_medium,
utm_campaign: ppc_campaign_cookies?.utm_campaign,
Expand Down

0 comments on commit e8dcc9e

Please sign in to comment.