> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cometly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Install the Meta pixel in your Shopify theme.liquid

> Install the Meta pixel in Shopify theme.liquid so Meta gets page views from your store while Cometly's Conversion API sends your other events.

Meta is not receiving page view events from your Shopify store, even though Cometly's Conversion API is sending your conversions. The Conversion API (CAPI) sends your conversions to an ad platform from the server instead of the browser.

The likely cause is that the Meta pixel is not on your storefront. Cometly's Conversion API doesn't send page view events, so Meta only gets them from the Meta pixel running in the visitor's browser. The fix is to install the Meta pixel in Shopify `theme.liquid`, the theme file that loads on your storefront pages.

## Install the Meta pixel in Shopify theme.liquid

This video shows how to hard code the Meta pixel into the `theme.liquid` file of your Shopify store.

[Install the Meta pixel in your Shopify theme.liquid video](https://www.loom.com/embed/4ce655e179604752b219f6e58f927f48)

1. Copy your Meta pixel code from Meta.
2. Log in to your Shopify store. Under **Sales channels**, click **Online Store** > **Themes**.
3. Next to the **Customize** button, click the three dots, then click **Edit code**.
4. In the left panel, choose **theme.liquid**.
5. Search `theme.liquid` for `</head>` and paste the Meta pixel code before it, so it sits in the `<head>` section.
6. Click **Save**.

## Confirm the Meta pixel is installed

Open your store in a browser and visit a page. Then look for the new page view events from your store in Meta Events Manager.

## Frequently asked questions

### Does Cometly's Conversion API send page views to Meta?

No. Cometly's Conversion API doesn't send page view events. Place the Meta pixel in the `<head>` of your site for page views, and use Cometly's Conversion API to send all other events to Meta from the server. See the [Meta Conversion API guide](https://docs.cometly.com/guides/conversion-api/meta.md).

### Can I use Shopify's Meta Conversion API and Cometly's at the same time?

No. You can only run one Conversion API for Meta, or you will have duplicate events. Choose either Shopify's native Meta Conversion API or Cometly's. See the [Shopify integration](https://docs.cometly.com/integrations/platforms/shopify.md) for how to choose.

### Do I still need the Cometly pixel in theme.liquid?

Yes. The Cometly pixel is a separate script that tracks where your store visitors come from, so Cometly can tie their orders back to the ad or channel that brought them in. The Meta pixel does not replace it. See [Shopify pixel installation](https://docs.cometly.com/integrations/pixel/shopify.md).

## Next steps

* [Set up the Meta Conversion API in Cometly](https://docs.cometly.com/guides/conversion-api/meta.md)
* [Install the Cometly pixel on Shopify](https://docs.cometly.com/integrations/pixel/shopify.md)
* [Connect the Shopify integration](https://docs.cometly.com/integrations/platforms/shopify.md)
* [Fix Meta Conversion API events that are not arriving](https://docs.cometly.com/support/troubleshooting/conversion-api/meta-capi-not-sending-events.md)

Still have questions or need a hand? We're happy to help. Reach our team at [support@cometly.com](mailto:support@cometly.com).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.