Last active
January 8, 2019 02:46
-
-
Save alaingoldman/8e9039b36471564754607de01e7ff2cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| console.log("Pre load bro:::::::::::::::::"); | |
| document.addEventListener('unii:ticket:purchased', function (event) { | |
| var guap = event.detail.subtotal; | |
| fbq('track', 'Purchase', { | |
| value: guap, | |
| currency: 'USD' | |
| }); | |
| console.log(guap); | |
| ga('ecommerce:addItem', { | |
| 'id': 'random123', | |
| 'name': 'Fluffy Pink Bunnies', | |
| 'affiliation': 'Acme Clothing', | |
| 'category': 'Party Toys', | |
| 'sku': 'DD23444', | |
| 'price': '11.99', | |
| 'shipping': '5', | |
| 'tax': '1.29', | |
| 'quantity': '1', | |
| 'currency': 'USD' // local currency code. | |
| }); | |
| ga('ecommerce:send'); | |
| console.log("Event below bro:::::::::::::::::"); | |
| console.log(event); | |
| }, false); | |
| </script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment