> AI agents: this is one page from PostHog's docs. Full index of Markdown docs for LLMs: https://posthog.com/llms.txt # Tutorials and guides Canonical URL: https://posthog.com/docs/product-analytics/tutorials ## On this page - [How to capture and filter events](#how-to-capture-and-filter-events) - [How to track common metrics](#how-to-track-common-metrics) - [Integrations](#integrations) - [How to analyze events and actions](#how-to-analyze-events-and-actions) - [How to use SQL](#how-to-use-sql) - [Framework guides](#framework-guides) - [Best practices](#best-practices) Got a question which isn't answered below? Head to [the community forum](https://posthog.com/questions.md) to let us know! ## How to capture and filter events - [How to filter out internal users](https://posthog.com/tutorials/filter-internal-users.md) - [How to capture fewer unwanted events](https://posthog.com/tutorials/fewer-unwanted-events.md) - [How to track high-volume APIs](https://posthog.com/tutorials/track-high-volume-apis.md) - [How to set up cross-domain tracking](https://posthog.com/tutorials/cross-domain-tracking.md) - [How to track pageviews in single-page apps (SPA)](https://posthog.com/tutorials/single-page-app-pageviews.md) - [How to create actions using CSS selectors](https://posthog.com/tutorials/css-selectors-for-actions.md) - [How to rename events](https://posthog.com/tutorials/how-to-rename-events.md) ## How to track common metrics - [How to track new and returning users](https://posthog.com/tutorials/track-new-returning-users.md) - [How to analyze first and last touch attribution](https://posthog.com/tutorials/first-last-touch-attribution.md) - [How to calculate time on page](https://posthog.com/tutorials/time-on-page.md) - [How to calculate bounce rates](https://posthog.com/tutorials/bounce-rate.md) - [How to calculate and lower churn rate](https://posthog.com/tutorials/churn-rate.md) - [How to calculate DAU/MAU ratio](https://posthog.com/tutorials/dau-mau-ratio.md) - [How to track scroll depth](https://posthog.com/tutorials/scroll-depth.md) - [How to track performance marketing metrics](https://posthog.com/tutorials/performance-marketing.md) - [How to calculate average session-based metrics](https://posthog.com/tutorials/session-metrics.md) - [How to set up OpenAI observability](https://posthog.com/tutorials/openai-observability.md) - [How to set up AI Observability for Anthropic's Claude](https://posthog.com/tutorials/anthropic-analytics.md) - [How to set up AI Observability for Cohere](https://posthog.com/tutorials/cohere-analytics.md) ## Integrations - [How to connect PostHog and InsForge](https://posthog.com/tutorials/how-to-connect-posthog-and-insforge.md) ## How to analyze events and actions - [How to analyze autocapture events with SQL](https://posthog.com/tutorials/hogql-autocapture.md) - [How to discover features that drive user retention](https://posthog.com/tutorials/feature-retention.md) - [How to identify and analyze power users](https://posthog.com/tutorials/power-users.md) - [How to use Recharts to visualize analytics data](https://posthog.com/tutorials/recharts.md) - [How to use React Charts to visualize analytics data (with examples)](https://posthog.com/tutorials/react-charts.md) - [How to set up embedded analytics](https://posthog.com/tutorials/embedded-analytics.md) ## How to use SQL > Check [our SQL tutorials](https://posthog.com/docs/sql/tutorials.md) for more information about analyzing events with SQL. ## Framework guides - [How to set up Android analytics](https://posthog.com/tutorials/android-analytics.md) - [How to set up Angular analytics and more](https://posthog.com/tutorials/angular-analytics.md) - [How to set up Astro analytics and more](https://posthog.com/tutorials/astro-analytics.md) - [How to set up Bubble analytics and more](https://posthog.com/tutorials/bubble-analytics.md) - [How to set up Carrd analytics and more](https://posthog.com/tutorials/carrd-analytics.md) - [How to set up Django analytics and more](https://posthog.com/tutorials/django-analytics.md) - [How to set up Electron analytics](https://posthog.com/tutorials/electron-analytics.md) - [How to set up analytics in Flutter](https://posthog.com/tutorials/flutter-analytics.md) - [How to set up Framer analytics and more](https://posthog.com/tutorials/framer-analytics.md) - [How to set up Ghost analytics](https://posthog.com/tutorials/ghost-analytics.md) - [How to set up Laravel analytics](https://posthog.com/tutorials/laravel-analytics.md) - [How to set up Go analytics](https://posthog.com/tutorials/go-analytics.md) - [How to set up iOS analytics](https://posthog.com/tutorials/ios-analytics.md) - [How to set up Next.js (app router) analytics and more](https://posthog.com/tutorials/nextjs-analytics.md) - [How to set up Next.js (pages router) analytics and more](https://posthog.com/tutorials/nextjs-pages-analytics.md) - [How to set up Node.js (Express) analytics and more](https://posthog.com/tutorials/node-express-analytics.md) - [How to set up Nuxt.js analytics](https://posthog.com/tutorials/nuxt-analytics.md) - [How to set up PHP analytics](https://posthog.com/tutorials/php-analytics.md) - [How to set up Python and Flask analytics](https://posthog.com/tutorials/python-analytics.md) - [How to set up React analytics](https://posthog.com/tutorials/react-analytics.md) - [How to set up React Native (Expo) analytics and more](https://posthog.com/tutorials/react-native-analytics.md) - [How to set up Remix analytics and more](https://posthog.com/tutorials/remix-analytics.md) - [How to set up Ruby on Rails analytics and more](https://posthog.com/tutorials/ruby-on-rails-analytics.md) - [How to set up Rust analytics](https://posthog.com/tutorials/rust-analytics.md) - [How to set up Svelte analytics and more](https://posthog.com/tutorials/svelte-analytics.md) - [How to set up Vue analytics](https://posthog.com/tutorials/vue-analytics.md) - [How to set up Webflow analytics and more](https://posthog.com/tutorials/webflow.md) - [How to set up Wix analytics and more](https://posthog.com/tutorials/wix-analytics.md) - [How to set up Squarespace analytics](https://posthog.com/tutorials/squarespace-analytics.md) - [How to set up .NET analytics](https://posthog.com/tutorials/dotnet-analytics.md) ## Best practices Learn more about analytics best practices from our blogs below: - [The complete guide to event tracking](https://posthog.com/tutorials/event-tracking-guide.md) - [Introduction to regex in PostHog](https://posthog.com/tutorials/regex-basics.md) - [Understanding group analytics: frontend vs backend](https://posthog.com/tutorials/frontend-vs-backend-group-analytics.md) - [5 ways to improve your analytics data](https://posthog.com/blog/5-ways-to-improve-analytics-data.md) - [5 analytics ideas for marketing teams](https://posthog.com/blog/analytics-tips-for-marketing-teams.md) - [5 events all teams should track](https://posthog.com/blog/events-you-should-track-with-posthog.md) - [5 analytics tips for customer success team](https://posthog.com/blog/analytics-tips-for-customer-success-teams.md) - [Product metrics to track for LLM apps](https://posthog.com/product-engineers/llm-product-metrics.md) - [25 mobile app metrics and KPIs you should track](https://posthog.com/product-engineers/mobile-app-metrics-kpis.md) - [How we found our activation metric (and how you can too)](https://posthog.com/product-engineers/activation-metrics.md) - [WTF is activation and why should engineers care?](https://posthog.com/newsletter/wtf-is-activation.md) - [Use alerts to avoid missing changes to key metrics](https://posthog.com/blog/alerts-examples.md)