-
-
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> |
I was manually visiting the URL since our test environment operates on a different URL. So I am just pasting this URL into my browser:
http://development-workstation-joekindness.agencyanalytics.io:24080/?gspid=gstest
You could try it yourself by signing up for a dummy account.
Is that ok to do? Seems to be registering the partner id since it sends it on create signup. I also thought this might be a problem with the test environment, so I tried it live too and it didn't register the signup in the growsumo interface.
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
I will give it a shot on my end as well and let you know if I find anything funky
Here is an example with the changes
https://gist.github.com/nchudleigh/841e75409798f326b81afd25cef46f8f