# Discourse and Amplitude

**URL:** https://meta.discourse.org/t/discourse-and-amplitude/137466
**Category:** Support
**Created:** [December 31, 2019, 11:12pm UTC](https://meta.discourse.org/t/discourse-and-amplitude/137466 "2019-12-31T23:12:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![j127](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j127/32/79093_2.png) [@j127](https://meta.discourse.org/u/j127)
#### Post date: [December 31, 2019, 11:12pm UTC](https://meta.discourse.org/t/discourse-and-amplitude/137466/1 "2019-12-31T23:12:43Z")

</div>

Has anyone integrated [Amplitude](https://amplitude.com/) into a Discourse site? I’m wondering if anyone has already come up with best practices or a plugin that sends user IDs and events into the analytics.

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [January 1, 2020, 12:37am UTC](https://meta.discourse.org/t/discourse-and-amplitude/137466/2 "2020-01-01T00:37:04Z")

</div>

> [@j127](#):
>
> Has anyone integrated [Amplitude](https://amplitude.com/) into a Discourse site?

Not that I know of. It should be possible to use their [JavaScript SDK](https://help.amplitude.com/hc/en-us/articles/115002889587-JavaScript-SDK-Reference) in a similar way to what is being done with thiis Segment theme component: [Segment Tracking Theme Component](https://meta.discourse.org/t/segment-tracking-theme-component/133335). The other approach would be to make a Discourse Amplitude plugin and make the requests to Amplitude from the server.

---

<div class="post-metadata">

### Author: ![j127](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j127/32/79093_2.png) [@j127](https://meta.discourse.org/u/j127)
#### Post date: [January 1, 2020, 1:09am UTC](https://meta.discourse.org/t/discourse-and-amplitude/137466/3 "2020-01-01T01:09:07Z")

</div>

Thanks, I’ll use that as a guide.

---

<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: [January 31, 2020, 1:09am UTC](https://meta.discourse.org/t/discourse-and-amplitude/137466/4 "2020-01-31T01:09:15Z")

</div>

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

---

<div class="post-metadata">

### Author: ![tobiaseigen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tobiaseigen/32/539204_2.png) [@tobiaseigen](https://meta.discourse.org/u/tobiaseigen)
#### Post date: [January 11, 2025, 10:13pm UTC](https://meta.discourse.org/t/discourse-and-amplitude/137466/5 "2025-01-11T22:13:27Z")

</div>



---

<div class="post-metadata">

### Author: ![robertwebb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/robertwebb/32/480026_2.png) [@robertwebb](https://meta.discourse.org/u/robertwebb)
#### Post date: [January 11, 2025, 10:08pm UTC](https://meta.discourse.org/t/discourse-and-amplitude/137466/6 "2025-01-11T22:08:11Z")

</div>

Hey I created a component for supporting amplitude:

[https://github.com/robert-j-webb/discourse-amplitude-component](https://github.com/robert-j-webb/discourse-amplitude-component)

It’s open to PRs, etc.
