nl_tokens: Records an order in Google Analytics
pl_tokens: function recordOrderInGoogleAnalytics ( cart , orderId ) { if ( ! isAdTrackingAllowed ( ) ) { debug ( 'recordOrderInGoogleAnalytics: skipping as ad tracking is disallowed' ) ; return ; } const transaction = { <mask> : orderId , affiliation : 'WordPress.com' , revenue : cart . total_cost , currency : cart . currency , } ; debug ( 'recordOrderInGoogleAnalytics: ga ecommerce add transaction' , transaction ) ; window . ga ( 'ecommerce:addTransaction' , transaction ) ; }