How to add Facebook, Google and TikTok pixels to your store
Paste your Meta, TikTok, GA4, Google Ads or GTM ID and EcomUp tracks page views, add-to-carts and purchases on your store.
Add your Facebook (Meta), TikTok, Google Analytics 4, Google Ads or Google Tag Manager ID to your EcomUp store. A pixel is a small tracking tag from an ad platform. It records visits, add-to-carts and purchases, so you can measure your ads and build audiences. You only paste the ID; EcomUp adds the code and sends the shopping events for you.
Before you start
- You need an online store. See How to set up your online store.
- Get your ID from the ad platform:
- Facebook Pixel: Meta Events Manager → Data Sources. A number like 1234567890123456.
- TikTok Pixel: TikTok Events Manager → Web Events. Like C9XXXXXXXXXXXXXXXXXX.
- Google Analytics 4: Admin → Data Streams. Starts with G-.
- Google Ads: Tools → Conversions. Starts with AW-.
- Google Tag Manager: your container ID. Starts with GTM-.
Steps
- In the left menu, open Store → Website → Settings, then the Tracking tab. The page is called Tracking & Pixels.
- Find the card for your platform, for example Facebook Pixel.

In the Facebook Pixel card (1), paste your ID into Pixel / Measurement ID (2). The switch (3) turns on by itself. Then click Save (4). - Paste your ID into Pixel / Measurement ID. The switch turns on by itself.
- Optional: fill in Server-side tracking (see below).
- Click Save. You'll see “Pixel saved”, and the card shows Active.
- Repeat for any other platform you use.
Optional: server-side tracking
Ad blockers and closed tabs can stop some purchases from being counted. Server-side tracking sends purchases from EcomUp's servers as well, so fewer are lost. Purchases sent both ways are matched by order number, so they're not counted twice.
- Facebook Pixel → Conversions API access token: in Events Manager, go to Settings → Conversions API → Generate access token. Add a Test event code (optional) only while testing in the Test Events tab, then clear it.
- TikTok Pixel → Events API access token: TikTok Events Manager → your pixel → Settings → Events API.
- Google Analytics 4 → Measurement Protocol API secret: Admin → Data Streams → your stream → Measurement Protocol API secrets.
Which events are sent?
| Shopper action | TikTok | Google Analytics 4 / Tag Manager | |
|---|---|---|---|
| Opens a page | PageView | Page view | page_view |
| Views a product | ViewContent | ViewContent | view_item |
| Adds to cart | AddToCart | AddToCart | add_to_cart |
| Starts checkout | InitiateCheckout | InitiateCheckout | begin_checkout |
| Places an order | Purchase | CompletePayment | purchase |
Tips
- Values are sent in your store currency. See Store language and currency.
- To pause a pixel without losing the ID, turn its switch off and click Save. The card then shows Disabled.
- To delete a pixel, click Remove.
- Access tokens and secrets are hidden after saving. You don't need to type them again to save other changes.
- Use the Meta Pixel Helper or Google Tag Assistant browser extensions on your live store to check that your tags fire.
- Need a tag that isn't listed here (for example a chat or review tool)? Use Custom code.
Troubleshooting
“Enter a numeric Pixel ID (5-20 digits).”
Facebook Pixel IDs are numbers only. Copy the Pixel ID from Events Manager, not your ad account ID or the whole code snippet.
“Enter a GA4 Measurement ID like G-XXXXXXXXXX.”
Use the GA4 Measurement ID that starts with G-. Old Universal Analytics IDs (UA-…) don't work.
“Enter a Google Ads conversion ID like AW-123456789.” or “Enter a GTM container ID like GTM-XXXXXXX.”
Paste just the ID, including the AW- or GTM- at the start, with no spaces.
“Enter a TikTok Pixel ID (10-30 letters/digits).”
Copy the Pixel ID from TikTok Events Manager → Web Events. It contains only letters and numbers.
“Use letters and digits only (e.g. TEST12345).”
The Facebook test event code can't contain spaces or symbols. Copy it again from the Test Events tab.
The switch is greyed out
Enter a valid ID first. A pixel can't be turned on without one.
I don't see events in Events Manager
Make sure the pixel shows Active, then open your store at its real address (your subdomain or custom domain) and browse a few pages. Events can take a few minutes to appear.