snegir

order smartmail

Nov 3rd, 2016
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. <script>
  2.  
  3. function getCookie(cname) {
  4. var name = cname + "=";
  5. var ca = document.cookie.split(';');
  6. for(var i = 0; i <ca.length; i++) {
  7. var c = ca[i];
  8. while (c.charAt(0)==' ') {
  9. c = c.substring(1);
  10. }
  11. if (c.indexOf(name) == 0) {
  12. return c.substring(name.length,c.length);
  13. }
  14. }
  15. return "";
  16. }
  17.  
  18. window._ssstats = window._ssstats || [];
  19. _ssstats.push([
  20. 'configure', {
  21. accountId: 497517
  22. }
  23. ]);
  24.  
  25. _ssstats.push([ 'publish', 'order success', {
  26. Items: getCookie('cartArray'),
  27. orderId: $('.os-order-number').text().trim().split('#')[1],
  28. monetaryValue: getCookie('cartSubtotal')
  29. }
  30. ]); _ssstats.push([ 'publish', 'order success', {
  31. Items: getCookie('cartArray'),
  32. subtotal: getCookie('cartSubtotal')
  33. }
  34. ]);
  35.  
  36.  
  37. </script>
  38. <script src="//cdn.statstrk01.com/assets/javascripts/sdk2.js" async></script>
Advertisement
Add Comment
Please, Sign In to add comment