Skip to content

Instantly share code, notes, and snippets.

@ryanbattles
Created November 16, 2015 16:56
Show Gist options
  • Save ryanbattles/8eef9a06abada9dd221d to your computer and use it in GitHub Desktop.
Save ryanbattles/8eef9a06abada9dd221d to your computer and use it in GitHub Desktop.
Sets referral cookies to Intercom.io
window.intercomSettings = {
...
"harpoon_referrer" : $.cookie('harpoon_referrer'),
"utm_source" : $.cookie('utm_source'),
"utm_medium" : $.cookie('utm_medium'),
"utm_term" : $.cookie('utm_term'),
"utm_content" : $.cookie('utm_content'),
"utm_campaign" : $.cookie('utm_campaign')
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment