Advertisement
Milos_Jevtic

Glami - 04 Purchase

May 24th, 2023
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.80 KB | None | 0 0
  1. <!--Glami piXel for Sportvision-->
  2. <script>
  3. (function(f, a, s, h, i, o, n){f['GlamiTrackerObject'] = i; f[i]=f[i]||function(){(f[i].q=f[i].q||[]).push(arguments)};o=a.createElement(s), n=a.getElementsByTagName(s)[0];o.async=1;o.src=h;n.parentNode.insertBefore(o,n) })(window,document,'script','//www.glami.si/js/compiled/pt.js','glami');
  4.  
  5. glami('create','{{Lookup | Glami API Key}}','si');
  6. glami('track','PageView');
  7.  
  8. glami('track','Purchase', {item_ids: ['{{JavaScript | Purchase | IDs}}'], // bought product IDs. Use the same IDs as you use
  9. value: '{{Data Layer | Purchase | Value}}' , // order value (sum of product values)
  10. currency:'{{Lookup | Currency}}',// order value currency
  11. transaction_id:'{{Data Layer | Purchase | Transaction ID}}'// order ID
  12. });
  13. </script>
  14. <!-- End Glami piXel -->  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement