Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- $("#id").on('submit', function(){
- (function() {
- window.sib = {
- equeue: [],
- client_key: "ug2ruahm8paf5sbvyoou76ny"
- };
- /* OPTIONAL: email for identify request*/
- // window.sib.email_id = 'example@domain.com';
- window.sendinblue = {};
- for (var j = ['track', 'identify', 'trackLink', 'page'], i = 0; i < j.length; i++) {
- (function(k) {
- window.sendinblue[k] = function() {
- var arg = Array.prototype.slice.call(arguments);
- (window.sib[k] || function() {
- var t = {};
- t[k] = arg;
- window.sib.equeue.push(t);
- })(arg[0], arg[1], arg[2]);
- };
- })(j[i]);
- }
- var n = document.createElement("script"),
- i = document.getElementsByTagName("script")[0];
- 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();
- })();
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement