Linking MongoDB as a source

Last updated:

|Edit this page|

The MongoDB connector can link your mongodb tables to PostHog.

To link MongoDB:

  1. Go to the Data pipeline page and the sources tab in PostHog
  2. Click New source and select MongoDB
  3. Enter your mongodb connection string
  4. Click Link

Once the syncs are complete, you can start using MongoDB data in PostHog.

Note: MongoDB data is unstructured so the returned columns are an _id field and a data column that contain the entire document contents. Data fields can be selected with dot notation (e.g. data.field1)

Questions? Ask Max AI.

It's easier than reading through 675 pages of documentation

Community questions

Was this page useful?

Next article

Linking Azure SQL Server as a source

The Azure SQL Server connector can link your database tables to PostHog. This applies to any MS SQL Server, not just Azure hosted databases. We use Microsoft ODBC 18 to connect to your SQL server. For Azure databases, we only use SQL authentication (and not Entra ID). You can find your connection details by following the steps listed here . The Azure database also needs to be publicly accessible (or use a SSH tunnel). You can follow step 1 of this Microsoft guide to enable public access and…

Read next article