Articles on: Frequently Asked Questions (FAQ)

Facebook Pixel integration for Consentmo GDPR app

Here is how it works by default:
Our app deletes the Facebook Pixel cookies on page load. However, those cookies are then created by Facebook again on the next page load. Because of that, we are removing the cookies on every refresh. With that said, when a customer visits a page, a small bit of information is sent to Facebook Pixel. We are using this method due to Shopify's limitations preventing us from getting the tracking codes for each store.

Enabling of the Facebook Pixel's integration script

Open Shopify Admin.
Click on Online Store link in the left menubar.
Click on the Actions dropdown button and select Edit Code from there.
A new page will open with a list of files on the left side of the screen. Open the theme.liquid file.
Find where you have set the Facebook Pixel script in the head HTML element - <head>. It should look similar to this:



Copy the content of the file provided below and paste it under the script tag from step 5. Afterward, follow the next two steps:



Download Facebook Pixel Integration script

* Step 1. Copy the content of the Facebook Pixel script and paste it under the comments “// The content of Facebook Pixel script goes here”.



* Step 2. Comment out or delete the Facebook Pixel script and save the changes.



The final result should look like this:



That's it!

Updated on: 09/02/2024

Was this article helpful?

Share your feedback

Cancel

Thank you!