integration-expo

Integrate PostHog analytics into Expo apps with provider setup and configuration.

58|5|Updated Jan 19, 2026
One-click install
npx skills add https://github.com/PostHog/skills --skill integration-expo-posthog
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: integration-expo
Source: https://github.com/PostHog/skills/tree/main/skills/posthog/integration/skills/expo
Command: npx skills add https://github.com/PostHog/skills --skill integration-expo-posthog

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

PostHog integration for Expo apps faces the challenge of quickly instrumenting analytics across an Expo/React Native project. This skill provides a guided pathway to configure PostHog, set up environment-based credentials, and follow a reusable workflow for events, user identification, and error tracking.

Core Features & Use Cases

  • Expo-ready PostHog integration with provider setup and autocapture options
  • Guidance for identifying users, tracking screens, and handling errors
  • Reference project patterns and an extensible workflow for onboarding analytics

Quick Start

Install the skill into your Expo project, configure POSTHOG_PROJECT_TOKEN and POSTHOG_HOST in app.config.js, and bootstrap PostHog with PostHogProvider to start analytics.

Frequently Asked Questions about integration-expo

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate PostHog analytics into an Expo app?

PostHog integration in Expo requires configuring POSTHOG_PROJECT_TOKEN and POSTHOG_HOST in app.config.js, then bootstrapping PostHog with PostHogProvider to enable analytics, user identification, and error tracking.

What is the best way to identify users in a React Native Expo Router project?

Identifying users in an Expo Router project involves using PostHog provider patterns to attach user traits to analytics events, ensuring consistent user identification across screen navigations and error reports.

Can I use PostHog autocapture with Expo Router screen tracking?

Yes, PostHog autocapture can be used with Expo. This skill provides provider setup with autocapture options and reference patterns for automatically tracking screens and events across your Expo Router navigation flow.

Do I need environment variables for PostHog setup in a React Native app?

Yes, environment variables are required for PostHog setup. The workflow uses POSTHOG_PROJECT_TOKEN and POSTHOG_HOST in app.config.js to securely initialize the PostHog client in your Expo project.

Does this PostHog Expo integration handle error tracking automatically?

The PostHog Expo integration provides guided workflows and best practices for configuring error tracking alongside user identification and screen tracking across your React Native application.