It only takes a few minutes to install Intercom on your web app. Once installed, you’ll be able to see and talk to logged in users of your app.
First, enter your email address on the Intercom homepage and choose the JavaScript option.
Next, select ‘Users of your product’ and follow the instructions provided.
Here’s the JavaScript install code
You'll then 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',
email: 'john.doe@example.com', // Replace with email of
current user
user_id: '9876', // Optional: Replace with a unique identifier that will not change
created_at: 1234567890, // Replace with Unix timestamp of signup date
name: 'John Doe' // Optional: Replace with real name if available
};
/* 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{va
r 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=tr
ue;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,fa
lse);}}})()
</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.
Then just edit the code to include the email address and signed-up date of the user who is currently logged in.
IMPORTANT: Make sure to change YOUR_APP_ID.
To complete the code install, activate Intercom by logging into your app in your development environment.
Check out this quick video if you’d rather see how it’s done:
Sign up for your free trial
Finally, you’ll be prompted to sign up for a free trial of Intercom. Here’s how it works:
Select a product to start a free trial. You get a 14 day free trial of each product, which you can start at any time.
After your free trial ends, Intercom's products start at $49/month.
If you cancel in the first 14 days you won't be charged.
Now you're ready to start using Intercom.
What’s next?
Once you’re logged in to your Intercom account, open the Intercom Setup Guide (lower left hand side of your screen). Here you can complete your setup and learn how to get the most out of Intercom.