nl_tokens: Records an order in Quantcast
pl_tokens: function recordOrderInQuantcast ( cart , orderId , wpcomJetpackCartInfo ) { if ( ! isAdTrackingAllowed ( ) || ! isQuantcastEnabled ) { return ; } if ( wpcomJetpackCartInfo . containsWpcomProducts ) { if ( null !== wpcomJetpackCartInfo . wpcomCostUSD ) { // Note that all properties have to be strings or they won't get tracked const params = { qacct : TRACKING_IDS . quantcast , labels : '_fp.event.Purchase Confirmation,_fp.pcat.' + wpcomJetpackCartInfo . wpcomProducts . map ( product => product . product_slug ) . join ( ' ' ) , orderid : orderId . toString ( ) , revenue : wpcomJetpackCartInfo . wpcomCostUSD . toString ( ) , event : 'refresh' , } ; debug ( 'recordOrderInQuantcast: record WPCom purchase' , params ) ; window . _qevents . push ( params ) ; } else { debug ( ` ${ cart . currency } ` ) ; } } if ( wpcomJetpackCartInfo . containsJetpackProducts ) { if ( null !== wpcomJetpackCartInfo . jetpackCostUSD ) { // Note that all properties have to be strings or they won't get tracked const params = { qacct : TRACKING_IDS . quantcast , labels : '_fp.event.Purchase Confirmation,_fp.pcat.' + wpcomJetpackCartInfo . jetpackProducts . <mask> ( product => product . product_slug ) . join ( ' ' ) , orderid : orderId . toString ( ) , revenue : wpcomJetpackCartInfo . jetpackCostUSD . toString ( ) , event : 'refresh' , } ; debug ( 'recordOrderInQuantcast: record Jetpack purchase' , params ) ; window . _qevents . push ( params ) ; } else { debug ( ` ${ cart . currency } ` ) ; } } }