PixieHog is a Shopify app designed to simplify and streamline the integration of PostHog analytics for Shopify merchants. Whether you're an experienced developer or a Shopify merchant with little to no coding experience, PixieHog helps you set up PostHog the right way, ensuring integration with Shopify Customer Privacy API for privacy compliance and using the Shopify Web Pixels API.
Integrating PostHog into Shopify can be a challenging and error-prone process, even for seasoned developers. It involves navigating multiple technical steps, understanding complex compliance requirements. This complexity often becomes a friction point for merchants exploring PostHog for Shopify.
PixieHog solves these problems by providing:
- Simplicity: A seamless setup process that abstracts away the technical complexity.
- Compliance: Built-in integration with the Shopify Customer Privacy API ensures that all tracking respects user consent, sending anonymized data when necessary or detailed data when permitted.
- Accessibility: Makes PostHog accessible to merchants with no coding experience.
- Efficiency: Saves developers and merchants hours of integration time into Shopify and reducing the potential for mistakes.
- Plug-and-Play Integration: Install PixieHog on your Shopify store and start tracking with PostHog in minutes.
- Privacy-First Tracking:
- Uses Shopify Customer Privacy API to verify data processing permissions & consent.
- Sends anonymized data when user consent is pending or declined.
- Captures full, detailed data when user consent is granted, fully compliant with GDPR, CCPA, and other privacy laws.
- Opinionated Defaults: Comes with a pre-configured setup to track key events like
checkout_completed
,page_viewed
, andproduct_added_to_cart
Web Pixel events. - Full Control via GUI: A flexible graphical interface allows merchants and developers to fine-tune all PostHog configuration properties and Web Pixels Standard & DOM events, giving you full control over your setup.
- Documentation Hub: Accompanies a dedicated documentation site with a clear, opinionated guide on how to use PostHog effectively with Shopify.
PixieHog is for:
- Shopify Merchants:
- Especially those with little to no technical experience who want actionable insights without the hassle of a complete setup.
- Developers:
- Looking to simplify PostHog setup for multiple Shopify stores.
- Who value compliance and want to avoid reinventing the wheel for every integration.
- Install PixieHog on your Shopify store.
- Configure your PostHog API key within the app.
- PixieHog automatically:
- Adds Web Pixel to the store.
- Tracks key events (e.g.,
add_to_cart
,checkout_completed
) using Shopify Web Pixels API. - Respects user consent via the Shopify Customer Privacy API.
- Optionally: turn on on-site snippet for Session Replays and Experiments support.
- Use the app to customize PostHog configuration properties and Web Pixel events as needed, beyond the default setup.
- Dive into PostHog Product Analytics to explore & visualize your data and gain actionable insights.
PixieHog is community-driven because:
- Transparency matters: Merchants and developers can trust the app to handle data responsibly.
- Collaboration drives innovation: Feature requests and contributions help make PixieHog better for everyone.
We welcome contributions from the community, whether you're a developer, a Shopify merchant, or an analytics enthusiast.
PixieHog is released under the Functional Source License (FSL), which converts to Apache 2.0 after two years.
TLDR:
- You may use, modify, and commercialize this code to create and host Custom or Unlisted Shopify Apps for private use.
- You may NOT use this code to create or distribute Public Shopify Apps listed in the Shopify App Store.
Simplify Shopify + PostHog analytics with PixieHog and gain actionable insights faster, smarter, and more compliantly. 🚀