File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -217,16 +217,15 @@ var name = 'Facebook',
217217 }
218218 else if ( event . ProductAction . ProductActionType == mParticle . ProductActionType . AddToCart ) {
219219 eventName = ADD_TO_CART_EVENT_NAME ;
220- if ( event . ProductAction . TransactionId ) {
221- params [ 'order_id' ] = event . ProductAction . TransactionId ;
222- }
223-
224- // Build contents array for AddToCart events
225- contents = buildProductContents ( event . ProductAction . ProductList ) ;
226- if ( contents && contents . length > 0 ) {
227- params [ 'contents' ] = contents ;
228- }
220+ if ( event . ProductAction . TransactionId ) {
221+ params [ 'order_id' ] = event . ProductAction . TransactionId ;
222+ }
229223
224+ // Build contents array for AddToCart events
225+ contents = buildProductContents ( event . ProductAction . ProductList ) ;
226+ if ( contents && contents . length > 0 ) {
227+ params [ 'contents' ] = contents ;
228+ }
230229 }
231230 else {
232231 eventName = VIEW_CONTENT_EVENT_NAME ;
You can’t perform that action at this time.
0 commit comments