How to add Facebook pixel code to shopify theme to track purchase events

Topic summary

A non-Shopify Plus merchant is seeking help adding Facebook pixel code to their theme to track purchase events.

Initial Suggestion:

  • Another user recommended using the official Facebook & Instagram app from the Shopify App Store.

Complication:

  • The original poster cannot use this app because their store doesn’t have Shop Pay enabled.
  • They’re now requesting direct assistance with manually adding the tracking code to their theme.

Status: The question remains unresolved, with the merchant still needing guidance on implementing Facebook pixel tracking without using the standard app integration.

Summarized with AI on November 19. AI used: claude-sonnet-4-5-20250929.

I can’t use this app since our store doesn’t have Shopify payment. Can you help me add code to track events?