Skip to content

Testing and Verification

After setting up PixieHog and configuring event tracking, it’s important to test and verify that events are correctly captured in your PostHog dashboard. Follow these steps to ensure everything is working as expected.

1. Testing Shopify Web Pixel Events

To verify that Shopify Web Pixel Events are being tracked:

  1. Visit Your Store: Open your Shopify store and perform basic actions that trigger events, such as:

    • Viewing a product page
    • Adding an item to the cart
    • Starting the checkout process
    • Completing a purchase (optional)
  2. Check PostHog Dashboard:

    • Log in to your PostHog account.
    • Go to explore under the Activity tab.
    • Look for the corresponding events (e.g., Page View, Add to Cart) and confirm that they are logged in real time.

2. Testing PostHog JS Web

If you have configured the PostHog JS Web through PixieHog, you can test the configs you enabled:

  • Go to your Shopify store and try to interact with the events ( configs ) you enabled in js Web example “page_view” and “page_leave” events.
  • Go to explore under the Activity tab.
  • Ensure each interaction matches the events you set up (e.g., “pageview” or “Pageleave”).

4. Troubleshooting Common Issues

If events do not appear in PostHog as expected:

  • Check API Key: Ensure that the PostHog API key in PixieHog is correct.
  • Confirm Toggles: Double-check that both Web Pixel Events and JavaScript Web Config toggles are enabled in PixieHog settings.
  • Clear Cache: Clear your browser cache to ensure the latest JavaScript changes are applied.
  • Review Console Errors: Open your browser’s developer console to check for any JavaScript errors related to event tracking.