Discourse and Amplitude

Has anyone integrated Amplitude 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.

Not that I know of. It should be possible to use their JavaScript SDK in a similar way to what is being done with thiis Segment theme component: Segment Tracking Theme Component. The other approach would be to make a Discourse Amplitude plugin and make the requests to Amplitude from the server.

Thanks, I’ll use that as a guide.

Hey I created a component for supporting amplitude:

It’s open to PRs, etc.