Facebook and TikTok pixels

Measure your ads: find your pixel ID in Meta and TikTok, paste it in “Marketing” and check that it works — with a picture for every step.

A pixel is a small piece of code from Facebook (Meta) or TikTok. It tells your ad account what people do in your shop after tapping your ad: which product they looked at, what they put in the cart, whether they ordered.

Why it helps: Facebook and TikTok learn who buys and show your ads to people like them; you see which ad brings orders and which one only spends money; and you can advertise again to people who looked at a product or filled a cart without buying.

1 — Find your Facebook (Meta) pixel ID:

  1. 1Open Meta Events Manager (business.facebook.com/events_manager) with the account you advertise with — it is easier on a computer.
  2. 2In “Data sources”, choose your pixel. None yet: press “Connect data” → “Web”, give it a name and create it. When Meta asks how to install the code, you can stop there — LaoCart puts the code in your shop for you.
  3. 3Copy the ID written under its name: a number of 15–16 digits.
A simplified drawing of Meta Events Manager: ① open it, ② Data sources, ③ the ID under the pixel's name (example number).
A simplified drawing of Meta Events Manager: ① open it, ② Data sources, ③ the ID under the pixel's name (example number).

2 — Find your TikTok pixel ID:

  1. 1Open TikTok Ads Manager (ads.tiktok.com) and go to “Tools” → “Events”.
  2. 2Choose “Web events”, then your pixel. None yet: press “Set up web events”, give it a name and choose to install the code manually — LaoCart puts it in for you.
  3. 3Copy the ID next to its name: about 20 letters and digits, usually starting with C.
A simplified drawing of TikTok Ads Manager: ① Tools → Events, ② Web events, ③ the ID next to the pixel's name (example code).
A simplified drawing of TikTok Ads Manager: ① Tools → Events, ② Web events, ③ the ID next to the pixel's name (example code).

3 — Paste them in LaoCart:

  1. 1In LaoCart, open “Settings” → “Marketing”.
  2. 2Paste the Facebook number into “Facebook Pixel ID” and the TikTok code into “TikTok Pixel ID”, then press “Save”.
“Settings” → “Marketing” of the example shop Dokchampa Beauty, with two example IDs.
“Settings” → “Marketing” of the example shop Dokchampa Beauty, with two example IDs.

4 — Check that it works:

  1. 1On a computer, add the free “Meta Pixel Helper” extension (and “TikTok Pixel Helper”) to Google Chrome.
  2. 2Open your shop at its own address (not the dashboard), look at a product and add it to the cart.
  3. 3Click the extension: it shows your ID and the events PageView, ViewContent, AddToCart (TikTok: Pageview). A green ✓ means it works.
A simplified drawing: ② the shop open in Chrome with an item in the cart, ③ the Pixel Helpers listing the events received (example shop and IDs).
A simplified drawing: ② the shop open in Chrome with an item in the cart, ③ the Pixel Helpers listing the events received (example shop and IDs).

No computer? In Events Manager, open your pixel → the “Test events” tab, type your shop's address and open it: every page you view shows up within seconds. TikTok has the same “Test events” tab, with a QR code to open your shop on your phone.

What your shop sends to Facebook: every page viewed, a product viewed (ViewContent), an item added to the cart (AddToCart), the order page opened (InitiateCheckout) and an order placed (Purchase), with the amount in kip. To TikTok: every page viewed.

Nothing shows up? Check, in this order:

  1. 1Is the shop open (a plan paid)? Before it opens there is no pixel.
  2. 2You opened the shop's own address, not the dashboard or the laocart.com/preview link.
  3. 3The Facebook number is in “Facebook Pixel ID” and the TikTok code in “TikTok Pixel ID” — not swapped, and nothing else.
  4. 4Ad blockers are off; wait a few minutes and reload the page.

To stop: empty the field and press “Save”.

Related articles

Still stuck?

Message us on WhatsApp. Sending your shop name and a screenshot gets you an answer much faster.

Message LaoCart

Want us to do it for you — enter your products, design your covers? That is an optional service, billed separately. See the optional services

← Back to the help centre

Facebook and TikTok pixels · LaoCart