Want to create highly-targeted Meta ads based on shopper activity? You'll need to install a Meta Pixel to do it!

A Meta Pixel (formerly Facebook Pixel) collects data on conversions from Facebook ads and actions taken on your website (e.g., product views, product added to cart, etc.). You can use this data to build targeted audiences for future ads, such as retargeting ads for shoppers who have visited your webstore but haven't made a purchase.

CommentSold simplifies the process of installing Meta Pixel code in your webstore. Follow the below instructions for our recommended setup!

All you need to get started is to:

  Not ready to run Meta Ads? We still recommend setting up your Meta pixel so it can start gathering event data. You'll be able to pull from the history once you're ready to conquer ads!

Step 1: Create a Meta Pixel


Pixels live in Meta Events Manager because they track shopper events (e.g., add to cart events, purchase events, etc.). Head there for the first step.

  1. Navigate to your Facebook page and select Meta Business Suite from the side menu.
  2. Select All Tools in the side menu of your Meta Business Suite.
  3. In the Advertise section, select Events Manager.
  4. Select Connect Data Sources in the side menu.
  5. In the pop-up, select Web, then Connect.
  6. Enter a name for the Pixel in the Name your Pixel field, then select Create.
  7. Enter your verified domain URL, then select Check, then Next.
  8. On Select a setup page, select Do it yourself, then select Next.
  9. On Choose how to connect to your website, select Meta and Conversions API, then select Next.

Step 2: Set Up Conversions API to Connect Website Activity


Next, you’ll need to set up the Conversions API to connect website activity.

  1. On Select how you’d like to set up Conversions API, select Set up manually, then select Next.
  2. Select Continue in the bottom-right corner of the page.
  3. Select your desired Events, then select Continue.
    • Note that you only need to select one event to continue, as the CS API does not require all events to be selected.
  4. Select the required Event Detail Parameters, then select Continue.
    • Note that you can continue without selecting an Event Detail Parameter.
  5. Review the setup and then select Continue.
  6. Select Finish.

Step 3: Add Your Pixel ID and API Token to CommentSold


Next, you'll need to add your Meta Pixel ID and API Token to CommentSold. Think of this as adding Meta's Pixel tracking code to your CommentSold website—it's a key step that allows the Pixel to access website events. 

  1. Locate and select your newly created Pixel in the column on the left side of the page.
  2. In a new tab, open your CommentSold account, hover over the side menu of your CommentSold dashboard, then select Site Creator.
  3. Select Settings at the top of your Site Creator.
  4. Select and expand the Marketing section in the side menu of the Site Creator.
  5. Select Ad Conversion Channels.
  6. Select Meta.
  7. Select and expand the Facebook Pixel and CAPI section.
  8. Go back to the Facebook Data Sources page and select the Settings tab on the right side of the page.
  9. Locate and copy your Dataset ID. This is your Pixel ID. Simply select the ID to automatically copy it to your device and then paste it in the Facebook Pixel ID field in CommentSold.
  10. Go back to the Facebook Data Sources page, locate Set up direct integration and select Generate access token.
  11. Copy your Access token. Simply select the token to automatically copy it to your device and then paste it in the Conversion API Access Token field in CommentSold.
  12. Select Update.
  13. Once done, review the changes and select Publish at the top right corner of the page.

Step 4: Test The Events


Next, you’ll want to test that your Pixel is working and tracking events. You can do this through the Test Events option.

  1. Go back to the Facebook Data Sources page and select the Test Events tab on the top.
  2. Expand Confirm your website’s events are set up correctly tab.
  3. Enter your Website URL and select Open website.
  4. Perform a test behavior of shopper on the website (e.g., view a product, add a product to your cart, etc.).
  5. Go back to the Facebook Data Sources page and verify the activity appears.

What's Next?


  • Facebook Ads
  • Social Selling
  • Instagram Ads
Was this article helpful?
0 out of 0 found this helpful

We're here to help

Reach out to our support team, connect with our community, or ask an expert.