Advice and answers from the Intercom Team

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. 

Finally, continue to the setup guide and follow the instructions provided to install Intercom.

Now you're ready to start using Intercom. 

Here’s the JavaScript code

In the setup guide you'll see the code snippet you need to install. Or you can quickly grab it from here instead: 

<script>
   /* 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>  

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: 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. 

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. 

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?