Skip to content

Instantly share code, notes, and snippets.

@kian
Created March 22, 2016 23:04
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 kian/e1d0ef424df1ad688042 to your computer and use it in GitHub Desktop.
Save kian/e1d0ef424df1ad688042 to your computer and use it in GitHub Desktop.
<script>
// BEAT MESSAGE
try {
window.wixBiSession = {
initialTimestamp : Date.now(),
viewerSessionId: 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c)
{ var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8); return v.toString(16); }
)
};
(new Image()).src = 'http://frog.wix.com/bt?src=29&evid=3&pn=1&et=1&v=3.0&vsi=' + wixBiSession.viewerSessionId +
'&url=' + encodeURIComponent(location.href.replace(/^http(s)?:\/\/(www\.)?/, '')) +
'&isp=1&st=2&ts=0&c=' + wixBiSession.initialTimestamp;
} catch (e){}
// BEAT MESSAGE END
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment