Skip to content

Instantly share code, notes, and snippets.

@jkindness
Created October 20, 2016 17:51
Show Gist options
  • Save jkindness/8d11d95eababf5d3d6373acc44c4b71d to your computer and use it in GitHub Desktop.
Save jkindness/8d11d95eababf5d3d6373acc44c4b71d to your computer and use it in GitHub Desktop.
<script type='text/javascript'>(function(){var gs=document.createElement('script');gs.src='https://snippet.growsumo.com/growsumo.min.js';gs.type='text/javascript';gs.async ='true';gs.onload=gs.onreadystatechange=function(){var rs=this.readyState;if(rs&&rs!='complete'&&rs!='loaded')return;try{growsumo._initialize('pk_d9FOdhhfrKGLy9YCGYIVQJVqv6PdNIxf');}catch(e){}};var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(gs,s);})();</script>
<script>
jQuery(document).ready(function($) {
// send signup to growsumo
if (typeof growsumo != 'undefined') {
growsumo.data.email = 'test@test.com';
growsumo.data.customer_key = 123;
console.log(growsumo);
growsumo.createSignup();
}
});
</script>
@nchudleigh
Copy link

nchudleigh commented Oct 20, 2016

The way that the tracking works is, it sets the partner key on a cookie on the grsm.io domain so even if your redirect isnt going to that spot the tracking will still work

@nchudleigh
Copy link

I will give it a shot on my end as well and let you know if I find anything funky

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment