Enterprise
Bring Your Own Analytics
Add your own analytics provider to Danswer
As part of the Enterprise Edition, we provide the ability to bring your own analytics provider. This allows you to get session replays, usage metrics, etc. in the platform you’re alraedy familiar with.
To enable this, there are a few steps:
- Set the
CUSTOM_ANALYTICS_SECRET_KEY
environment variable to some random string (e.g.2uIfMPVgHCTD57HU
). Make sure you have the value saved temporarily somewhere. - Re-deploy Danswer.
- Go to the
Custom Analytics
tab in the Admin Panel. - Enter in the Javascript snippet provided by your Analytics provider. This snippet would normally be placed within the
<head>
tags at the base of your project. For theSecret Key
, use the value you saved in step 1.
For reference, here is the page on the Posthog docs which describes the script referred to above.
NOTE: the <script>
tag MUST be removed before being copied into the text box.