Basic Posthog API integration - Add A Feature

Поділитися
Вставка
  • Опубліковано 27 сер 2024
  • In this video, we'll work on a feature to integrate PostHog analytics into the Craftwork web application. We create a Rails model to store marketing attribution data from PostHog called TrafficSource. The job fetches session data from the PostHog API, parses it, and stores relevant marketing metadata like UTM parameters, click IDs, referrers etc. in the TrafficSource model. Tests are written to validate the parsing and storage of the session data. The integration will allow the business to analyze the marketing funnel and tie revenue back to different traffic sources like Facebook/Google ads.
    #rubyonrails #ruby #rails

КОМЕНТАРІ • 2

  • @carloshenrique1683
    @carloshenrique1683 8 місяців тому

    Very nice!! I found it very interesting how you integrated with the API using this internal generator. Do you have a repository showing more how it works?

    • @cjav_dev
      @cjav_dev  8 місяців тому

      Unfortunately, no. This codebase is private, still :)