Skip to content

Instantly share code, notes, and snippets.

@hitGovernor
Last active December 18, 2020 13:06
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 hitGovernor/a4d85daad676e87339e520f061f9b346 to your computer and use it in GitHub Desktop.
Save hitGovernor/a4d85daad676e87339e520f061f9b346 to your computer and use it in GitHub Desktop.
s.registerPreTrackCallback(function(requestUrl, allowList, hostname) {
var doTrack = (allowList.indexOf(hostname) > -1);
console.log(allowList, hostname, doTrack);
}, ['sandbox.test.com'], document.location.hostname);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment