Advertisement
ikamal

woo-coupon-track.js

Jul 13th, 2020
909
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2. $("#id").on('submit', function(){
  3.  
  4. (function() {
  5. window.sib = {
  6. equeue: [],
  7. client_key: "ug2ruahm8paf5sbvyoou76ny"
  8. };
  9. /* OPTIONAL: email for identify request*/
  10. // window.sib.email_id = 'example@domain.com';
  11. window.sendinblue = {};
  12. for (var j = ['track', 'identify', 'trackLink', 'page'], i = 0; i < j.length; i++) {
  13. (function(k) {
  14. window.sendinblue[k] = function() {
  15. var arg = Array.prototype.slice.call(arguments);
  16. (window.sib[k] || function() {
  17. var t = {};
  18. t[k] = arg;
  19. window.sib.equeue.push(t);
  20. })(arg[0], arg[1], arg[2]);
  21. };
  22. })(j[i]);
  23. }
  24. var n = document.createElement("script"),
  25. i = document.getElementsByTagName("script")[0];
  26. n.type = "text/javascript", n.id = "sendinblue-js", n.async = !0, n.src = "https://sibautomation.com/sa.js?key=" + window.sib.client_key, i.parentNode.insertBefore(n, i), window.sendinblue.page();
  27. })();
  28.  
  29. });
  30. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement