Sunbird UCI
  • Overview of Sunbird UCI
  • 📙Learn
    • UCI use cases
    • UCI for Education(Case study)
    • Tech Overview
      • Glossary
      • High-level Architecture Design
      • Design Principles
      • Standards
  • 🚀Use
    • Choose your Persona
    • Adopter - Install and use UCI
      • Pre-requisites, Installation Setup, Post Setup
      • Setting up your very first conversation
      • API Documentation
      • Data Exhaust and Analytics
      • Posthog Event
      • Whatsapp (Netcore)
      • Environment Variables
    • Developer - Contribute to UCI
      • UCI Basics
        • XMessage Specification
        • Transformers
          • ODK Transformer
            • Interactive-Messages
            • Media Messages
            • Location
          • Broadcast Transformer
        • Adapters
          • Firebase Notification Adapter
        • User Segment
        • Schema Overview
          • UCI Core Schema
            • XMessage Schema
            • Assessment DB Schema
          • UCI API Schema
      • Development environment
        • Backend Setup
        • Setting up IDE
        • Environment variable setup
        • Debug services
        • Build and Execute UCI
        • Frontend Setup (Admin Console)
        • Frontend Setup (PWA)
        • Transport Socket
      • API Documentation
        • Bot Setup APIs
        • History APIs
        • Direct Message APIs
        • Vault APIs
      • Database Schema
        • Cassandra Xmessage Database
        • Postgres Forms Database
        • Postgres User Analytics Database
        • Postgres Comms Database
      • Contribution Guide
        • Your first PR
        • Contribute an Adapter
        • Adapter Implementation
        • Create a Transformer
    • Contact the administrator
  • ✅Releases
    • Release V2
  • 🤝Engage
    • Software License
    • Acceptable Use Policy
    • Terms of Service
    • Source Code
    • Discussion Forum
Powered by GitBook
On this page
  • Overview
  • Steps to use PostHog events
  • 1. Create Posthog Account
  • 2. Enable Posthog Event in UCI
  • 3. Create insights in Posthog

Was this helpful?

Edit on GitHub
  1. Use
  2. Adopter - Install and use UCI

Posthog Event

PreviousData Exhaust and AnalyticsNextWhatsapp (Netcore)

Last updated 2 years ago

Was this helpful?

Overview

PostHog is the all-in-one product analytics suite. PostHog provides everything product-led teams need in one place, including:

  • Product Analytics

  • Aggregate Dashboard

  • Insights

  • User lifecycle

  • Event pipelines

  • Export data

In UCI we are also using PostHog for creating aggregate dashboard by sending the events on each conversation. The events follow given .

Steps to use PostHog events

1. Create Posthog Account

First we would need to create a new account on & get a project api key. The project api key will be available in of Posthog account.

2. Enable Posthog Event in UCI

To enable posthog events in UCI follow below steps.

  1.     POSTHOG_TELEMETRY_APIKEY= // Api key
        POSTHOG_TELEMETRY_URL=https://app.posthog.com
  2. Add environment to enable posthog event.

        POSTHOG_EVENT_ENABLED=TRUE
  3. After the posthog events are enabled, UCI will send all conversations as events to posthog. we can generate aggregate dashboard with these events using insights, actions etc.

3. Create insights in Posthog

Add below environment variables for posthog url & api key. .

We can create insights like counts, graphs etc using posthog insights. Use this to better understand the insights, funnels, life-cycle etc that posthog provides.

🚀
specification
Posthog
Project Settings
Link to environments of UCI
documentation