Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. (global as any).GAITracker.prototype.setValue.call(googleAnalytics.getTracker(), "&cu", price.currency);
  2.  
  3. const productAction = new (global as any).GAIEcommerceProductAction()
  4. .setAction('purchase')
  5. .setTransactionId(this.basket.orderReferenceNumber)
  6. .setRevenue(price.value);
  7.  
  8. builder = (global as any).GAIDictionaryBuilder.createScreenView().setProductAction(productAction);
  9. (global as any).GAITracker.prototype.send.call(googleAnalytics.getTracker(), builder.build());
  10.  
  11. (googleAnalytics.getTracker() as any).set("&cu", price.currency);
  12.  
  13. const productAction = new (com as any).google.android.gms.analytics.ecommerce.ProductAction((com as any).google.android.gms.analytics.ecommerce.ProductAction.ACTION_PURCHASE)
  14. .setTransactionId(this.basket.orderReferenceNumber)
  15. .setTransactionRevenue(price.value);
  16.  
  17. builder = new (com as any).google.android.gms.analytics.HitBuilders.ScreenViewBuilder().setProductAction(productAction);
  18. (googleAnalytics.getTracker() as any).send(builder.build());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement