It only takes a few minutes to install Intercom on your website. Once installed, you’ll be able to communicate with visitors to your website (people who aren’t logged into your app). 

First, enter your email address on the Intercom homepage and create your account. 

Next, start your free trial. 

Here's how your free trial works: 

  1. You'll get a 14 day free trial of each product, which you can start at any time.
  2. After your free trial ends, Intercom's products start at $49/month.
  3. If you cancel in the first 14 days you won't be charged.

Install the JavaScript code

Just copy the first code snippet in your web settings (here we pre-populate your APP ID for you). 

Or you can quickly grab it from here instead (note: if you copy the code below you will need to manually change your APP_ID): 

<script>
  var APP_ID = "APP_ID";

 window.intercomSettings = {
    app_id: APP_ID
  };
</script>
<script>(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>

How to use the code 

  • Paste the code right before the closing body tag of every page where you want the Intercom Messenger to appear. 
  • IMPORTANT: If you copied the code snippet above make sure to replace ‘APP_ID’ with your app ID.   
  • You’ll need to open your website in your development environment to activate the code install. 

Now you're ready to start using Intercom. 

What you need to know about installing Intercom on your website 

How the cookie works with your browser

Installing Intercom on your website depends on the Messenger being able to create a first-party cookie for *.customer-domain.com. This will fail (with modern browsers) on *.customer-app.firebaseapp.com and *.customer-app.herokuapp.com, or any domain registered as a public suffix, https://publicsuffix.org

How to keep your conversations private 

Any user who shares a computer and browser will be able to see the most recently logged in user’s conversation history until the cookie expires. You should call the Intercom shutdown method to clear your users’ conversations anytime they logout of your application. 

Switching the Messenger on and off

The Messenger may be switched off by default for some users. To turn it on or off, go to Settings > App Settings > Messenger Settings.

What’s next?

Not what you were looking for? 

You can find the ‘Install Intercom on your web app’ guide here.

Did this answer your question?