Advertisement
Guest User

datalayer

a guest
Jan 18th, 2021
498
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.72 KB | None | 0 0
  1. {
  2. pagePostType: 'page',
  3. pagePostType2: 'single-page',
  4. pagePostAuthor: 'admin',
  5. browserName: 'Chrome',
  6. browserVersion: '87.0.4280.141',
  7. browserEngineName: 'Blink',
  8. browserEngineVersion: '',
  9. osName: 'Windows',
  10. osVersion: '10.0',
  11. deviceType: 'desktop',
  12. deviceManufacturer: '',
  13. deviceModel: '',
  14. customerTotalOrders: 1,
  15. customerTotalOrderValue: '0.00',
  16. customerFirstName: 'xxxxx',
  17. customerLastName: 'xxxxxx',
  18. customerBillingFirstName: 'xxxxxx',
  19. customerBillingLastName: 'xxxxx',
  20. customerBillingCompany: '',
  21. customerBillingAddress1: 'xxxxxxxx',
  22. customerBillingAddress2: '',
  23. customerBillingCity: 'London',
  24. customerBillingPostcode: 'SW15 5QJ',
  25. customerBillingCountry: 'GB',
  26. customerBillingEmail: 'xxxxx@xxxxx.eu',
  27. customerBillingPhone: '+39xxxxxxx',
  28. customerShippingFirstName: 'xxxxx',
  29. customerShippingLastName: 'xxxx',
  30. customerShippingCompany: '',
  31. customerShippingAddress1: 'xxxxxxxx',
  32. customerShippingAddress2: '',
  33. customerShippingCity: 'London',
  34. customerShippingPostcode: 'SW15 5QJ',
  35. customerShippingCountry: 'GB',
  36. cartContent: {
  37. totals: {
  38. applied_coupons: [],
  39. discount_total: 0,
  40. subtotal: 0,
  41. total: 0
  42. },
  43. items: []
  44. },
  45. orderData: {
  46. attributes: {
  47. date: '2021-01-18T14:58:14+00:00',
  48. order_number: '6138',
  49. order_key: 'wc_order_RERNapVprVShG',
  50. payment_method: 'paypal',
  51. payment_method_title: 'PayPal',
  52. shipping_method: 'Free collection from SW15 5QJ',
  53. status: 'pending',
  54. coupons: ''
  55. },
  56. totals: {
  57. currency: 'GBP',
  58. discount_total: '0',
  59. discount_tax: '0',
  60. shipping_total: '0.00',
  61. shipping_tax: '0',
  62. cart_tax: '0',
  63. total: '6.90',
  64. total_tax: '0',
  65. total_discount: '0',
  66. subtotal: '6.9',
  67. tax_totals: []
  68. },
  69. customer: {
  70. id: 1,
  71. billing: {
  72. first_name: 'xxxxx',
  73. last_name: 'xxxxx',
  74. company: '',
  75. address_1: 'xxxxxxxxxx',
  76. address_2: '',
  77. city: 'London',
  78. state: '',
  79. postcode: 'SW15 5QJ',
  80. country: 'GB',
  81. email: 'xxxxxx@xxxxxxxx.eu',
  82. phone: '+39xxxxxx'
  83. },
  84. shipping: {
  85. first_name: 'xxxxxxx',
  86. last_name: 'xxxxxxx',
  87. company: '',
  88. address_1: 'xxxxxxxxxxx',
  89. address_2: '',
  90. city: 'London',
  91. state: '',
  92. postcode: 'SW15 5QJ',
  93. country: 'GB'
  94. }
  95. },
  96. items: [
  97. {
  98. id: 'BATT04',
  99. name: 'Nespresso 100% Arabica Coffee, 20 compatible pods',
  100. sku: 'BATT04',
  101. category: 'Nespresso compatible pods',
  102. price: 6.9,
  103. stocklevel: 49,
  104. brand: 'Coffee and Tea',
  105. quantity: 1
  106. }
  107. ]
  108. },
  109. event: 'gtm4wp.orderCompletedEEC',
  110. ecommerce: {
  111. currencyCode: 'GBP',
  112. purchase: {
  113. actionField: {
  114. id: '6138',
  115. affiliation: '',
  116. revenue: 6.9,
  117. tax: 0,
  118. shipping: 0,
  119. coupon: ''
  120. },
  121. products: [
  122. {
  123. id: 'BATT04',
  124. name: 'Nespresso 100% Arabica Coffee, 20 compatible pods',
  125. sku: 'BATT04',
  126. category: 'Nespresso compatible pods',
  127. price: 6.9,
  128. stocklevel: 49,
  129. brand: 'Coffee and Tea',
  130. quantity: 1
  131. }
  132. ]
  133. }
  134. },
  135. ecomm_prodid: ['BATT04'],
  136. ecomm_pagetype: 'purchase',
  137. ecomm_totalvalue: 6.9,
  138. google_tag_params: {
  139. pagePostType: 'page',
  140. pagePostType2: 'single-page',
  141. pagePostAuthor: 'admin',
  142. browserName: 'Chrome',
  143. browserVersion: '87.0.4280.141',
  144. browserEngineName: 'Blink',
  145. browserEngineVersion: '',
  146. osName: 'Windows',
  147. osVersion: '10.0',
  148. deviceType: 'desktop',
  149. deviceManufacturer: '',
  150. deviceModel: '',
  151. customerTotalOrders: 1,
  152. customerTotalOrderValue: '0.00',
  153. customerFirstName: 'xxxxxx',
  154. customerLastName: 'xxxxxx',
  155. customerBillingFirstName: 'xxxxx',
  156. customerBillingLastName: 'xxxxxx',
  157. customerBillingCompany: '',
  158. customerBillingAddress1: 'xxxxxxxxx',
  159. customerBillingAddress2: '',
  160. customerBillingCity: 'London',
  161. customerBillingPostcode: 'SW15 5QJ',
  162. customerBillingCountry: 'GB',
  163. customerBillingEmail: 'xxxxx@xxxxxx.eu',
  164. customerBillingPhone: '+39xxxxxx',
  165. customerShippingFirstName: 'xxxxxx',
  166. customerShippingLastName: 'xxxxxx',
  167. customerShippingCompany: '',
  168. customerShippingAddress1: '8 xxxxxxxxx',
  169. customerShippingAddress2: '',
  170. customerShippingCity: 'London',
  171. customerShippingPostcode: 'SW15 5QJ',
  172. customerShippingCountry: 'GB',
  173. cartContent: {
  174. totals: {
  175. applied_coupons: [],
  176. discount_total: 0,
  177. subtotal: 0,
  178. total: 0
  179. },
  180. items: []
  181. },
  182. orderData: {
  183. attributes: {
  184. date: '2021-01-18T14:58:14+00:00',
  185. order_number: '6138',
  186. order_key: 'wc_order_RERNapVprVShG',
  187. payment_method: 'paypal',
  188. payment_method_title: 'PayPal',
  189. shipping_method: 'Free collection from SW15 5QJ',
  190. status: 'pending',
  191. coupons: ''
  192. },
  193. totals: {
  194. currency: 'GBP',
  195. discount_total: '0',
  196. discount_tax: '0',
  197. shipping_total: '0.00',
  198. shipping_tax: '0',
  199. cart_tax: '0',
  200. total: '6.90',
  201. total_tax: '0',
  202. total_discount: '0',
  203. subtotal: '6.9',
  204. tax_totals: []
  205. },
  206. customer: {
  207. id: 1,
  208. billing: {
  209. first_name: 'xxxxxxx',
  210. last_name: 'xxxxxxx',
  211. company: '',
  212. address_1: '8 xxxxxxx',
  213. address_2: '',
  214. city: 'London',
  215. state: '',
  216. postcode: 'SW15 5QJ',
  217. country: 'GB',
  218. email: 'xxxxx@xxxxxxx.eu',
  219. phone: '+39xxxxxxxx'
  220. },
  221. shipping: {
  222. first_name: 'xxxxxx',
  223. last_name: 'xxxxxxx',
  224. company: '',
  225. address_1: '8 xxxxxxxxxxxxxxx',
  226. address_2: '',
  227. city: 'London',
  228. state: '',
  229. postcode: 'SW15 5QJ',
  230. country: 'GB'
  231. }
  232. },
  233. items: [
  234. {
  235. id: 'BATT04',
  236. name: 'Nespresso 100% Arabica Coffee, 20 compatible pods',
  237. sku: 'BATT04',
  238. category: 'Nespresso compatible pods',
  239. price: 6.9,
  240. stocklevel: 49,
  241. brand: 'Coffee and Tea',
  242. quantity: 1
  243. }
  244. ]
  245. },
  246. event: 'gtm4wp.orderCompletedEEC',
  247. transactionId: '6138',
  248. transactionAffiliation: '',
  249. transactionTotal: 6.9,
  250. transactionShipping: 0,
  251. transactionTax: 0,
  252. transactionCurrency: 'GBP',
  253. ecommerce: {
  254. currencyCode: 'GBP',
  255. purchase: {
  256. actionField: {
  257. id: '6138',
  258. affiliation: '',
  259. revenue: 6.9,
  260. tax: 0,
  261. shipping: 0,
  262. coupon: ''
  263. },
  264. products: [
  265. {
  266. id: 'BATT04',
  267. name: 'Nespresso 100% Arabica Coffee, 20 compatible pods',
  268. sku: 'BATT04',
  269. category: 'Nespresso compatible pods',
  270. price: 6.9,
  271. stocklevel: 49,
  272. brand: 'Coffee and Tea',
  273. quantity: 1
  274. }
  275. ]
  276. }
  277. },
  278. transactionProducts: [
  279. {
  280. id: 'BATT04',
  281. name: 'Nespresso 100% Arabica Coffee, 20 compatible pods',
  282. sku: 'BATT04',
  283. category: 'Nespresso compatible pods',
  284. price: 6.9,
  285. stocklevel: 49,
  286. brand: 'Coffee and Tea',
  287. quantity: 1
  288. }
  289. ],
  290. ecomm_prodid: ['BATT04'],
  291. ecomm_pagetype: 'purchase',
  292. ecomm_totalvalue: 6.9
  293. },
  294. gtm: {uniqueEventId: 1}
  295. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement