# \[Paid\] Install Intercom.io

**URL:** https://meta.discourse.org/t/paid-install-intercom-io/46980
**Category:** Marketplace
**Created:** [July 8, 2016, 2:49am UTC](https://meta.discourse.org/t/paid-install-intercom-io/46980 "2016-07-08T02:49:40Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![JakeHower](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jakehower/32/107662_2.png) [@JakeHower](https://meta.discourse.org/u/JakeHower)
#### Post date: [July 8, 2016, 2:49am UTC](https://meta.discourse.org/t/paid-install-intercom-io/46980/1 "2016-07-08T02:49:40Z")

</div>

I’m looking for someone to help me install the Intercom script on my Discourse install.

Instructions can be found here.

Our Discourse installation is installed on a DO server.

> **[Install Intercom for users on web | Intercom Help](https://www.intercom.com/help/en/articles/168-install-intercom-for-users-on-web)**
>
> Install the Intercom Messenger and start having conversations with your logged-in users.

[https://github.com/intercom/intercom-rails](https://github.com/intercom/intercom-rails)

We need to script to call the logged in users email address and their name (as opposed to username).

Let me know if you are interested?

---

<div class="post-metadata">

### Author: ![jesselperry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesselperry/32/119501_2.png) [@jesselperry](https://meta.discourse.org/u/jesselperry)
#### Post date: [July 8, 2016, 3:20am UTC](https://meta.discourse.org/t/paid-install-intercom-io/46980/2 "2016-07-08T03:20:18Z")

</div>

It’s fairly straightforward to set up, since Discourse provides the JSON and you can just read that client-side. I’m sure you could do it a more complicated way, but this is essentially how I’ve done it with Javascript. I modified my code slightly since you’re looking for email and name, but you should be able to just embed the below code under Customize \> CSS/HTML and be up & running.

Note the two places in the code of **YOUR\_INTERCOM\_APP\_ID** and **YOUR\_DISCOURSE\_DOMAIN**.

Also FYI the current Intercom Messenger doesn’t play well on iOS devices on Discourse. But they could be working on an updated Messenger. And if I were to have used an updated Intercom Messenger, I would say that it works very well on iOS now 😉

```
<script>
$.getJSON("https://YOUR_DISCOURSE_DOMAIN/session/current.json", function(json){
    var currentusernamefromjson = String(json.current_user.username);
    var currentuserflname = String(json.current_user.name);
    var fulllinktojson = "https://YOUR_DISCOURSE_DOMAIN/users/" + currentusernamefromjson + ".json";
    $.getJSON(fulllinktojson, function(json){
        var currentuseremail = String(json.user.email);
              Intercom('boot', {    
                    app_id: "YOUR_INTERCOM_APP_ID",
                    email: currentuseremail,
                    name: currentuserflname
                });
    });
});

	(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/YOUR_INTERCOM_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>

```

---

<div class="post-metadata">

### Author: ![JakeHower](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jakehower/32/107662_2.png) [@JakeHower](https://meta.discourse.org/u/JakeHower)
#### Post date: [July 8, 2016, 6:32am UTC](https://meta.discourse.org/t/paid-install-intercom-io/46980/3 "2016-07-08T06:32:50Z")

</div>

Thanks @jesselperry!

I tried this but it still isn’t working. Could that be something to do with the fact that I don’t have SSL setup on the forum?

Or perhaps because I’m using SSO via Wordpress to control logins?

Happy to pay to have this setup for me. I can likely struggle my way around doing it myself but I don’t have the patience 🙂

---

<div class="post-metadata">

### Author: ![jesselperry](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jesselperry/32/119501_2.png) [@jesselperry](https://meta.discourse.org/u/jesselperry)
#### Post date: [July 8, 2016, 12:41pm UTC](https://meta.discourse.org/t/paid-install-intercom-io/46980/4 "2016-07-08T12:41:54Z")

</div>

I’ll run a quick test with this code to see what the issue is. Before I do, I assume that your Wordpress/Discourse user emails match up with users you’ve already loaded into the Intercom admin dashboard?

SSO isn’t an issue. I actually have the same set up.

---

<div class="post-metadata">

### Author: ![JakeHower](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jakehower/32/107662_2.png) [@JakeHower](https://meta.discourse.org/u/JakeHower)
#### Post date: [July 8, 2016, 12:57pm UTC](https://meta.discourse.org/t/paid-install-intercom-io/46980/5 "2016-07-08T12:57:10Z")

</div>

They are. I have just messaged through access details to the forum if that is any help.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [August 7, 2016, 12:57pm UTC](https://meta.discourse.org/t/paid-install-intercom-io/46980/6 "2016-08-07T12:57:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
