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
On this page of the site you can watch the video online Basic Posthog API integration - Add A Feature with a duration of hours minute second in good quality, which was uploaded by the user CJ Avilla (cjav_dev) 22 December 2023, share the link with friends and acquaintances, this video has already been watched 662 times on youtube and it was liked by 13 viewers. Enjoy your viewing!