Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@rickalee
Created May 14, 2018 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rickalee/aea997dfe8c13c54ad2dabb2853ad9c6 to your computer and use it in GitHub Desktop.
Save rickalee/aea997dfe8c13c54ad2dabb2853ad9c6 to your computer and use it in GitHub Desktop.
MSCC Clicktale
<script>
function clicktaleTracking() {
var s = document.createElement( 'script' );
var src = "https://cdnssl.clicktale.net/www07/ptc/959721af-e707-44b6-9b6a-d14f3ec0f756.js";
s.setAttribute( 'src', src );
document.body.appendChild( s );
}
</script>
<script>
if ( ! mscc || mscc.hasConsent() ) {
clicktaleTracking();
} else if ( mscc ) {
mscc.on('consent', clicktaleTracking );
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment