@@ -5,13 +5,12 @@ import {defaultContextProperties} from './middlewares/source/defaultContextPrope
55import { pageReferrer } from './middlewares/source/pageReferrer.js'
66import { userScreenInfo } from './middlewares/source/userScreenInfo.js'
77import { userTraits } from './middlewares/source/userTraits.js'
8+ import { getCampaignDetails , loadGoogleAnalytics } from './repositories/googleRepository.js'
89import { checkAnonymousId } from './utils/checkAnonymousId.js'
910import { getConfig , isClient } from './config.js'
1011import analytics from './segmentWrapper.js'
1112import initTcfTracking from './tcf.js'
1213import { getUserDataAndNotify } from './universalId.js'
13- import { loadGoogleAnalytics , getCampaignDetails } from './repositories/googleRepository.js'
14- import { getAdobeMCVisitorID } from './repositories/adobeRepository.js'
1514
1615// Initialize TCF Tracking with Segment
1716initTcfTracking ( )
@@ -47,15 +46,11 @@ if (isClient && window.analytics) {
4746 }
4847
4948 window . gtag ( 'js' , new Date ( ) )
50-
51- getAdobeMCVisitorID ( ) . then ( marketingCloudVisitorId => {
52- window . gtag ( 'config' , googleAnalyticsMeasurementId , {
53- cookie_prefix : 'segment' ,
54- send_page_view : false ,
55- ...googleAnalyticsConfig ,
56- ...getCampaignDetails ( ) ,
57- mcvid : marketingCloudVisitorId
58- } )
49+ window . gtag ( 'config' , googleAnalyticsMeasurementId , {
50+ cookie_prefix : 'segment' ,
51+ send_page_view : false ,
52+ ...googleAnalyticsConfig ,
53+ ...getCampaignDetails ( )
5954 } )
6055 loadGoogleAnalytics ( ) . catch ( error => {
6156 console . error ( error )
@@ -69,3 +64,4 @@ if (isClient && window.analytics) {
6964export default analytics
7065export { getAdobeVisitorData , getAdobeMCVisitorID } from './repositories/adobeRepository.js'
7166export { getUniversalId } from './universalId.js'
67+ export { EVENTS } from './events.js'
0 commit comments