Created
November 2, 2016 17:32
-
-
Save nchudleigh/9b7b766d4a294c9b74f7578151d3e6f1 to your computer and use it in GitHub Desktop.
GrowSumoJS Loader
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 t=document.createElement("script");t.src="https://snippet.growsumo.com/growsumo.min.js",t.type="text/javascript",t.async="true",t.onload=t.onreadystatechange=function(){var t=this.readyState;if(!t||"complete"==t||"loaded"==t)try{growsumo._initialize("<REPLACE WITH YOUR PUBLIC KEY>"),"function"==typeof growsumoInit&&growsumoInit()}catch(e){}};var e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(t,e)}();</script> | |
<script> | |
// This function is called when GrowSumoJS is loaded | |
function growsumoInit(){ | |
console.log('GrowSumoJS loaded', growsumo); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Make sure that you replace
<YOUR PUBLIC KEY HERE>
with your public key