PostHog is open-source, offers self-hosting options, and provides session recording in its free plan.