Installing Browser Pixel in Shopify

The browser pixel tracks customer behavior on your Shopify store, including page views, product views, add to cart, and checkout events.

Why Install the Browser Pixel?

  • Track the complete customer journey from landing to purchase
  • Capture click IDs (fbc, gclid, ttclid) from ad URLs
  • Works alongside server-side webhooks for redundancy
  • Provides real-time event tracking

Step 1: Get Your Pixel Code

  1. Go to your store in TrackFlow
  2. Click the Setup tab
  3. Copy the pixel code from Step 1: Browser Pixel

Step 2: Add to Shopify Customer Events

  1. Go to your Shopify Admin
  2. Navigate to Settings → Customer events
  3. Click Add custom pixel
  4. Name it "TrackFlow" (or any name you prefer)
  5. Paste the pixel code from TrackFlow
  6. Set Permission to "Not required"
  7. Click Save
  8. Click Connect to activate the pixel

Pro Tip

After connecting, visit your store and browse a few pages. Then check the Events page in TrackFlow to verify events are being tracked.

Events Tracked

  • PageView: Every page load on your store
  • ViewContent: Product page views with product details
  • AddToCart: Items added to cart with value
  • InitiateCheckout: Checkout started
  • Purchase: Order completed with order value

Verifying Installation

  1. Open your store in a new browser tab
  2. Browse to a product page
  3. Add an item to cart
  4. Go to TrackFlow → Events
  5. You should see PageView, ViewContent, and AddToCart events

Troubleshooting

Events Not Appearing

  • Ensure the pixel is Connected (not just saved) in Shopify
  • Check browser console for JavaScript errors
  • Verify the Store ID in the pixel code matches your store
  • Clear your browser cache and try again

Duplicate Events

  • This is normal - browser and server events are deduplicated using event_id
  • Having both provides redundancy for better tracking accuracy

Next Steps