File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,15 @@ export const initializeCustomerIoSDK = (sdkConfig) => {
44 const config = {
55 cdpApiKey : Env . cdpApiKey , // Mandatory
66 migrationSiteId : Env . siteId , // For migration
7- trackApplicationLifecycleEvents : true , // TODO: Update this to a configurable property based on settings
7+ trackApplicationLifecycleEvents : sdkConfig . trackAppLifecycleEvents ,
88 inApp : {
99 siteId : 'site_id' ,
1010 }
1111 } ;
12+
1213 if ( sdkConfig . debugMode ) {
1314 config . logLevel = CioLogLevel . Debug ;
1415}
15-
1616CustomerIO . initialize ( config )
1717} ;
1818
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ export const initializeCustomerIoSDK = (sdkConfig: CustomerIoSDKConfig) => {
1010 const config = {
1111 cdpApiKey : Env . cdpApiKey , // Mandatory
1212 migrationSiteId : Env . siteId , // For migration
13- trackApplicationLifecycleEvents : true , // TODO: Update this to a configurable property based on settings
13+ trackApplicationLifecycleEvents : sdkConfig . trackAppLifecycleEvents ,
1414 inApp : {
1515 siteId : 'site_id' ,
1616 } ,
You can’t perform that action at this time.
0 commit comments