Skip to content

Commit

Permalink
Merge pull request #56 from epilot-dev/docs/journey-analytics
Browse files Browse the repository at this point in the history
added sample journey session query result for datalake
  • Loading branch information
manikandan96372 authored Aug 22, 2024
2 parents 7cbb224 + ae8b14f commit 5a8751f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/datalake/epilot-datalake.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -182,14 +182,15 @@ group by

This SQL query retrieves data about opportunities created over time, extracts relevant information from the JSON payload, and aggregates it by year and month, providing insights into opportunities created during different periods.

![Datalake page](/img/datalake/opportunity-time-series.png)

**Example 2: Reporting Journey Sessions Created Over Time**
Suppose you need to create a report showing journey sessions created over time for a specific journey. You can use SQL to accomplish this task:

``` sql
select
journey_id,
start_time,
end_time,
details
from
{org_id}_journey_sessions_final
Expand All @@ -201,7 +202,7 @@ where

This SQL query retrieves the journey sessions created over time for a specific journey

![Datalake page](/img/datalake/opportunity-time-series.png)
![Datalake page](/img/datalake/journey_analytics_query_result.png)

You can use any SQL client to connect to the Clickhouse Data Warehouse (DWH) using the credentials provided. For more detailed information, please refer to [this link](https://clickhouse.com/docs/en/integrations/datagrip).

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5a8751f

Please sign in to comment.