Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Product Click
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- event: 'productClick',
- ecommerce: {
- click: {
- actionField: {
- list: 'Ordenar'
- },
- products: [
- {
- id: '9da3ddb0-bb47-11ea-955b-ab937b241a4c',
- name: 'Wantรกn Frito x 2',
- price: 7,
- category: 'Entradas-y-piqueos',
- position: ''
- }
- ]
- }
- }
- });
- </script>
- //Add to cart
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- event: 'addToCart',
- ecommerce: {
- currencyCode: 'PEN',
- add: {
- products: [
- {
- id: '9da3ddb0-bb47-11ea-955b-ab937b241a4c',
- name: 'Wantรกn Frito x 2',
- price: 7,
- category: 'Entradas-y-piqueos',
- position: '',
- quantity: 1
- }
- ]
- }
- }
- });
- </script>
- //Add to cart - add-ons
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- event: 'addToCartAdit',
- ecommerce: {
- currencyCode: 'PEN',
- add: {
- products: [
- {
- id: 'f2dd7f20-c6cb-11ea-b8cb-e38aad115e26',
- name: 'Corbatitas chinas x Caja',
- price: 5.9,
- category: '',
- quantity: 1
- }
- ]
- }
- }
- });
- </script>
- //Checkout
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- event: 'checkout',
- ecommerce: {
- checkout: {
- actionField: {
- step: 1 //Integer
- },
- products: [
- {
- id: '301ce550-ab6d-11eb-9225-e3a8ceaacc4d',
- name: 'Corbatitas chinas x Caja',
- price: 5.9,
- category: '',
- quantity: 1
- }
- ]
- }
- }
- });
- </script>
- //Checkout option
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- event: 'checkoutOption',
- ecommerce: {
- checkout_option: {
- actionField: {
- option: 'Visa (Counter delivery)'
- }
- }
- }
- });
- </script>
- //Purchase
- <script>
- window.dataLayer = window.dataLayer || [];
- window.dataLayer.push({
- event: 'purchase',
- ecommerce: {
- purchase: {
- actionField: {
- id: 'db529960-ab6d-11eb-b9f9-adae77b10960',
- revenue: 50.8
- },
- products: [
- {
- id: 'db58c6d0-ab6d-11eb-87c6-abd4a30e98da',
- name: 'Corbatitas chinas x Caja',
- price: 5.9,
- quantity: 1,
- category: '',
- position: ''
- }
- ]
- }
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement