> For the complete documentation index, see [llms.txt](https://infinite-pixel-tracking.gitbook.io/infinite-pixel-tracking/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinite-pixel-tracking.gitbook.io/infinite-pixel-tracking/facebook-pixel/how-to-install-facebook-pixel-on-shopify.md).

# 🚀How to Install Facebook Pixel on Shopify?🚀

**Step 1.** Click on **Activate** to enable Infinite in the theme editor.<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeMk2WboiQhRPzzMoa8YzPm2QpXdMRqiuSQa0PrAHT28TkQkP_SzPEPNi4jbWzHI7KqrEphfIz65JNP7i9QvZimtSlDpQu7cHlOWcMOV22es_XqNLj7M5UhIRiaZlxGdLslLQii93NZQ-5uyngjzqYeYaI?key=TbmEo28svFPjDNPK-NWF6g" alt=""><figcaption></figcaption></figure>

\
**Step 2.** Click on **Add Facebook Pixel.**\ <br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXe9dydSv32crM35Ynj8dco9VtsGmvVlEddfw07ILkIc_ibBxaP8qpurpFL7EsVqzuM7JaNXw2ztBjQ-p0RrSTykIpWZXyAjeZ2SdxOuYnN8Vm-62tgSOOhYkZisXgM5BE5_Qe0_LnKARjxYHLWGeqhgGr-X?key=TbmEo28svFPjDNPK-NWF6g" alt=""><figcaption></figcaption></figure>

**Step 3.** Enter the **Name** of the pixel and insert the **Dataset ID** here which you copied from Facebook events manager.\ <br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcD9oPDNW383PGc1pD3AC6jYOOrjAh-PkNuPQOsUMcuc5ixlRVGfbouksV4PF2TcPBkD1TNHLPUS_axxS6THuBrhyQ7oSK6Gy9KGbWtCDzk7dNx-vo3AbyCuyLeUKLlqT5jjAuBTMLFdzXTPfV7VFm7MWQ?key=TbmEo28svFPjDNPK-NWF6g" alt=""><figcaption></figcaption></figure>

**Step 4.** Next, add the **Facebook Access Token** that you copied from Facebook Events Manager, as shown earlier.

<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcdtbfRHyHUNlWVdIfc-MePPXfbG__Wr1eiWWXB6yKD2L45LdMvy_r_0fbnemL7iau7skMtQ0WX35uvtZFi5A60toiB8OOjd9nc7aBreUUYVNi2X4OYQhUeJ7fLOn4zr42sNeCVNNjeBKx6MQcxwIfCmgNq?key=TbmEo28svFPjDNPK-NWF6g" alt=""><figcaption></figcaption></figure>

**Step 5**. Click “**Copy**”,  then select “**Customer Events**”, which will direct you to the Customer Events section in Shopify.\ <br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdU2rL0dk5_cchKvaxZfjIiZPM9HY67RF2yuZmyqWi_Qp38HtK3m6u8H0Q0-i_9p0u506SyeMb0j3yQ0c6TrAjAqhw0DxugLddFizHL4L08a5CuCFQTUKDlRAQ6JNEkijDrGXEGCZl7y1yWj8dMEgY5g8lN?key=TbmEo28svFPjDNPK-NWF6g" alt=""><figcaption></figcaption></figure>

\
Click on “**Add Custom Pixel**” and enter a name for your pixel.\ <br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXea0n61ivwopc6QVnAkJ29jlUl2r_xBfDYSeM8Qbzn-ZVvhXTuQCmC6ESeYmhO-vaYMLSTyYCnQcNS6HYJDCc2ZRXXuNuhFhweZp1wwqVRRUgwh-NwAWGgev96fdvzcvoQu4JveWRT_4ttigF31raz-dUKN?key=TbmEo28svFPjDNPK-NWF6g" alt=""><figcaption></figcaption></figure>

<br>

Now, open **Permissions** and select according to your need. If you choose **Required**, the pixel will collect data based on the permissions granted by customers. And if you select **Not Required** pixels will run always and it will collect data without permission. I'm selecting Not Required. <br>

<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfOyhwqUih682E0-JUej42QBdyzKZbbmjFVmLFH9p9ggOX8iLPC8cpxm90w0IHNgrfTwNVlL23VPok3ZANVLh-nJl8huENaUG6-ZN1GB6ELAYaunU3-wn6R4Uin9qgVS2V2QUqtSHJYpIL3FCpJ3zJbwr4?key=TbmEo28svFPjDNPK-NWF6g" alt=""><figcaption></figcaption></figure>

<br>

**Delete** this 7-line code from the bottom.\
\ <br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXckozRkPAYgRjUqlbCdivPCnkMlcPBvzgI_D0WZyLSW88-sPlH0DjavwU2kpvH70n3qIbo2XsrhuvTWT_ubVHyknK3-OJwCYu-oV_qORy3efuixwH3GXXcoV-IboyqCrRnMGo-Sja9iEXSDO3EcsmOfHmGM?key=TbmEo28svFPjDNPK-NWF6g" alt=""><figcaption></figcaption></figure>

\ <br>

**Paste** the code you copied from the app here and click on **Save.**\
\ <br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXcgD8x9L1sHQ69Z51gGHT1Hnbb4YAJ2vn5CvQJeKyPdpEHqUYrEIjHdY7vvPlClmIEJvesFFsq1jG4PZv3tmAvF2OZ6kP6PrkX_njzyCsSu_JkSNZR3mzgXYkDEOs9-MUxDWY4SsILQV2KNdL6xZf40zJjW?key=TbmEo28svFPjDNPK-NWF6g" alt=""><figcaption></figcaption></figure>

Now **connect** it. \ <br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfHfIj82VfdMCq0UwtyNCrI5dPaa34cI3I-jX12kPc9TIfwXxb9K1eB0hRtDn_ZA-69djR-RmAWuffEPKu6QO-kMaE_ngkuFBgeKyfriqHQwZOiPNk2nOMI_2Mr4ctixtyMCkPtMgrv03X6vorBrJsVeHYP?key=TbmEo28svFPjDNPK-NWF6g" alt=""><figcaption></figcaption></figure>

<br>

Now check the **box** and Click on **save**. &#x20;

<br>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXevWzCDdRanYyH8WXf84sanDmx-u8WpDjmoLKu1RNtD5BV4WumJjRDxK9A1rz8jQWdOXkjBPMkWkyGe4T8EHBQmAOt_v4iu2U9AHI5AbRYLEF1NWCugiMfgcxV0bxWxZ26qyd5f-1OnUM6OvROBbrxM8l8E?key=TbmEo28svFPjDNPK-NWF6g" alt=""><figcaption></figcaption></figure>

{% embed url="<https://youtu.be/RhjHKj0oszg?si=2MH5D0KHxKx4bX3w>" %}

\
**Congratulations**🤩! Your pixel has been successfully integrated and is ready to track with precision!🥳
