@@ -45,6 +45,7 @@ describe('Integration Capture', () => {
4545 window . document . cookie = '_fbp=54321' ;
4646 window . document . cookie = 'baz=qux' ;
4747 window . document . cookie = '_ttp=45670808' ;
48+ window . document . cookie = '_scid=cookie1-value' ;
4849 mParticle . init ( apiKey , window . mParticle . config ) ;
4950 await waitForCondition ( hasIdentifyReturned ) ;
5051 const integrationCapture = window . mParticle . getInstance ( ) . _IntegrationCapture ;
@@ -89,6 +90,7 @@ describe('Integration Capture', () => {
8990 expect ( testEvent . data . custom_flags [ 'GoogleEnhancedConversions.Gbraid' ] , 'Google Enhanced Conversions Gbraid' ) . to . equal ( '6574' ) ;
9091 expect ( testEvent . data . custom_flags [ 'GoogleEnhancedConversions.Wbraid' ] , 'Google Enhanced Conversions Wbraid' ) . to . equal ( '1234111' ) ;
9192 expect ( testEvent . data . custom_flags [ 'SnapchatConversions.ClickId' ] , 'Snapchat Click ID' ) . to . equal ( '1234' ) ;
93+ expect ( testEvent . data . custom_flags [ 'SnapchatConversions.Cookie1' ] , 'Snapchat Cookie1' ) . to . equal ( 'cookie1-value' ) ;
9294 } ) ;
9395
9496 it ( 'should add captured integrations to event custom flags, prioritizing passed in custom flags' , async ( ) => {
@@ -112,6 +114,7 @@ describe('Integration Capture', () => {
112114 expect ( testEvent . data . custom_flags [ 'GoogleEnhancedConversions.Gbraid' ] , 'Google Enhanced Conversions Gbraid' ) . to . equal ( '6574' ) ;
113115 expect ( testEvent . data . custom_flags [ 'GoogleEnhancedConversions.Wbraid' ] , 'Google Enhanced Conversions Wbraid' ) . to . equal ( '1234111' ) ;
114116 expect ( testEvent . data . custom_flags [ 'SnapchatConversions.ClickId' ] , 'Snapchat Click ID' ) . to . equal ( '1234' ) ;
117+ expect ( testEvent . data . custom_flags [ 'SnapchatConversions.Cookie1' ] , 'Snapchat Cookie1' ) . to . equal ( 'cookie1-value' ) ;
115118 } ) ;
116119
117120 it ( 'should add captured integrations to page view custom flags' , async ( ) => {
@@ -136,6 +139,7 @@ describe('Integration Capture', () => {
136139 expect ( testEvent . data . custom_flags [ 'GoogleEnhancedConversions.Gbraid' ] , 'Google Enhanced Conversions Gbraid' ) . to . equal ( '6574' ) ;
137140 expect ( testEvent . data . custom_flags [ 'GoogleEnhancedConversions.Wbraid' ] , 'Google Enhanced Conversions Wbraid' ) . to . equal ( '1234111' ) ;
138141 expect ( testEvent . data . custom_flags [ 'SnapchatConversions.ClickId' ] , 'Snapchat Click ID' ) . to . equal ( '1234' ) ;
142+ expect ( testEvent . data . custom_flags [ 'SnapchatConversions.Cookie1' ] , 'Snapchat Cookie1' ) . to . equal ( 'cookie1-value' ) ;
139143 } ) ;
140144
141145 it ( 'should add captured integrations to page view custom flags, prioritizing passed in custom flags' , async ( ) => {
@@ -159,6 +163,7 @@ describe('Integration Capture', () => {
159163 expect ( testEvent . data . custom_flags [ 'GoogleEnhancedConversions.Gbraid' ] , 'Google Enhanced Conversions Gbraid' ) . to . equal ( '6574' ) ;
160164 expect ( testEvent . data . custom_flags [ 'GoogleEnhancedConversions.Wbraid' ] , 'Google Enhanced Conversions Wbraid' ) . to . equal ( '1234111' ) ;
161165 expect ( testEvent . data . custom_flags [ 'SnapchatConversions.ClickId' ] , 'Snapchat Click ID' ) . to . equal ( '1234' ) ;
166+ expect ( testEvent . data . custom_flags [ 'SnapchatConversions.Cookie1' ] , 'Snapchat Cookie1' ) . to . equal ( 'cookie1-value' ) ;
162167 } ) ;
163168
164169 it ( 'should add captured integrations to commerce event custom flags' , async ( ) => {
@@ -197,6 +202,7 @@ describe('Integration Capture', () => {
197202 expect ( testEvent . data . custom_flags [ 'GoogleEnhancedConversions.Gbraid' ] , 'Google Enhanced Conversions Gbraid' ) . to . equal ( '6574' ) ;
198203 expect ( testEvent . data . custom_flags [ 'GoogleEnhancedConversions.Wbraid' ] , 'Google Enhanced Conversions Wbraid' ) . to . equal ( '1234111' ) ;
199204 expect ( testEvent . data . custom_flags [ 'SnapchatConversions.ClickId' ] , 'Snapchat Click ID' ) . to . equal ( '1234' ) ;
205+ expect ( testEvent . data . custom_flags [ 'SnapchatConversions.Cookie1' ] , 'Snapchat Cookie1' ) . to . equal ( 'cookie1-value' ) ;
200206 } ) ;
201207
202208 it ( 'should add captured integrations to commerce event custom flags, prioritizing passed in flags' , async ( ) => {
@@ -235,6 +241,7 @@ describe('Integration Capture', () => {
235241 expect ( testEvent . data . custom_flags [ 'GoogleEnhancedConversions.Gbraid' ] , 'Google Enhanced Conversions Gbraid' ) . to . equal ( '6574' ) ;
236242 expect ( testEvent . data . custom_flags [ 'GoogleEnhancedConversions.Wbraid' ] , 'Google Enhanced Conversions Wbraid' ) . to . equal ( '1234111' ) ;
237243 expect ( testEvent . data . custom_flags [ 'SnapchatConversions.ClickId' ] , 'Snapchat Click ID' ) . to . equal ( '1234' ) ;
244+ expect ( testEvent . data . custom_flags [ 'SnapchatConversions.Cookie1' ] , 'Snapchat Cookie1' ) . to . equal ( 'cookie1-value' ) ;
238245 } ) ;
239246
240247 it ( 'should add captured integrations to commerce event custom flags' , async ( ) => {
@@ -273,6 +280,7 @@ describe('Integration Capture', () => {
273280 expect ( testEvent . data . custom_flags [ 'GoogleEnhancedConversions.Gbraid' ] , 'Google Enhanced Conversions Gbraid' ) . to . equal ( '6574' ) ;
274281 expect ( testEvent . data . custom_flags [ 'GoogleEnhancedConversions.Wbraid' ] , 'Google Enhanced Conversions Wbraid' ) . to . equal ( '1234111' ) ;
275282 expect ( testEvent . data . custom_flags [ 'SnapchatConversions.ClickId' ] , 'Snapchat Click ID' ) . to . equal ( '1234' ) ;
283+ expect ( testEvent . data . custom_flags [ 'SnapchatConversions.Cookie1' ] , 'Snapchat Cookie1' ) . to . equal ( 'cookie1-value' ) ;
276284 } ) ;
277285
278286 it ( 'should add captured integrations to commerce event custom flags, prioritizing passed in flags' , async ( ) => {
@@ -311,6 +319,7 @@ describe('Integration Capture', () => {
311319 expect ( testEvent . data . custom_flags [ 'GoogleEnhancedConversions.Gbraid' ] , 'Google Enhanced Conversions Gbraid' ) . to . equal ( '6574' ) ;
312320 expect ( testEvent . data . custom_flags [ 'GoogleEnhancedConversions.Wbraid' ] , 'Google Enhanced Conversions Wbraid' ) . to . equal ( '1234111' ) ;
313321 expect ( testEvent . data . custom_flags [ 'SnapchatConversions.ClickId' ] , 'Snapchat Click ID' ) . to . equal ( '1234' ) ;
322+ expect ( testEvent . data . custom_flags [ 'SnapchatConversions.Cookie1' ] , 'Snapchat Cookie1' ) . to . equal ( 'cookie1-value' ) ;
314323 } ) ;
315324
316325 it ( 'should add captured integrations to batch as partner identities' , async ( ) => {
0 commit comments