Skip to content

Instantly share code, notes, and snippets.

@thewheat
Last active November 16, 2016 07:05
Show Gist options
  • Save thewheat/feff2c7593a0cdceb884d7b1c4c9973d to your computer and use it in GitHub Desktop.
Save thewheat/feff2c7593a0cdceb884d7b1c4c9973d to your computer and use it in GitHub Desktop.
Intercom Integration with ClickFunnels. Sample app https://tim-lim-clickfunnels.clickfunnels.com/optin
<script>
// just use the Acquire Install as per https://docs.intercom.io/install-on-your-web-product/use-javascript-to-install-intercom-on-any-web-site
// In the page editor go to Settings > Tracking Code > Footer Custom Tracking
// paste this snippet
// update your APP_ID
/* Replace 'APP_ID' with your app ID */
window.intercomSettings = {app_id: 'APP_ID'};
/* Replace 'APP_ID' with your app ID */
(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/APP_ID';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()
</script>
@thewheat
Copy link
Author

thewheat commented May 6, 2016

  • Settings > Tracking Code
    image
  • Footer Custom Tracking
    image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment