An app for Vtex Ecommerce platform (NYSE: VTEX) that makes it easy to integrate your store with Facebook Pixel.
PageView
: triggered when the user views a page;ProductView
: triggered when the user views a product page;CategoryView \ ViewContent
: triggered when the user views a category page;Search
: triggered when the user makes a search;AddToCart
: triggered when a product is added to the cart;Purchase
: triggered when an order is placed.
More details about the events can be found in the Facebook Pixel Documentation.
- Install it:
- downloading this repository and using Vtex CLI:
vtex install maeztraio.cvs-facebook-pixel@1.x
- Or access the URL:
https://{{accountName}}.myvtex.com/admin/apps/maeztraio.cvs-facebook-pixel/install
- downloading this repository and using Vtex CLI:
- Access the setup URL:
https://{{accountName}}.myvtex.com/admin/apps/maeztraio.cvs-facebook-pixel/setup
- Fill the form with your:
- Facebook Pixel ID;
- Facebook Campaign Access Token (details on documentation, scroll to "Business Manager > Step 3");
- Press the "Save" button.
Remember you must update your store's privacy policy to include the fact that you are collecting and sharing user data with Facebook.
- The Vtex environment requires Node v12, but this app also works fine in Node v14;
- Use Yarn Classic (v1) to install dependencies by running
npx yarn@1 install
; - To start the development server, run
vtex link
.
I would like to thank Maeztra for providing me with a test environment to develop this app.