SHARE
TWEET

Untitled

a guest Nov 19th, 2019 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tp.push(["addHandler", "checkoutComplete", function(conversion){
  2.  
  3. gtag('event', 'purchase', {
  4.   "transaction_id": "24.031608523954162",          // termID
  5.   "affiliation": "Google online store",              // Spectator
  6.   "value": 23.07,              // chargeAmount
  7.   "currency": "USD",            // chargeCurrency
  8.   "tax": 1.24,              // make this 0
  9.   "shipping": 0,            // make this 0
  10.   "items": [
  11.     {
  12.       "id": "P12345",                                   //   Any idea which one is product ID?
  13.       "name": "Android Warhol T-Shirt",                 //  Any idea which one is product Name?
  14.       "brand": "Google",                // Spectator
  15.       "category": "Apparel/T-Shirts",          // Subscription
  16.       "quantity": 1,                // they should all be 1, correct?
  17.       "price": '2.0'                //  chargeAmount
  18.     }
  19.   ]
  20. });
  21.  
  22. }]);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top