Skip to content

Instantly share code, notes, and snippets.

@nornagon
Created August 9, 2012 06:45
Show Gist options
  • Save nornagon/3301750 to your computer and use it in GitHub Desktop.
Save nornagon/3301750 to your computer and use it in GitHub Desktop.
<a href="http://segment.io" onclick="track('clicked on segment.io')">Yay!</a>
<script>
function track(msg) {
new Image().src = "http://segment.io/track?msg=" + encodeURLComponent(msg)
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment