Created
October 20, 2016 17:51
-
-
Save jkindness/8d11d95eababf5d3d6373acc44c4b71d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.