Go to Shopify Admin > Settings > Apps and Sales Channels.
Add the Facebook sales channel.
Connect your Facebook account, Business Manager, and Ad Account.
In the setup, choose your Pixel and link it — Shopify auto-installs it.
Once done, events like view, add to cart, and purchase will track.