Skip to content
Espectro Soluções

Espectro: products and pixels (Meta Pixel per product and Conversions API)

Link each product to its own Pixel and to the Conversions API token, and tell Espectro which sales belong to which product. Without this, the purchase does not reach Meta through the server. This tutorial also shows how to test sending.

On this page
  1. Who does it
  2. Why one Pixel per product
  3. Variations of the same product
  4. Before you start
  5. Step by step
  6. Part A. Create a product
  7. Part B. Pixel and Conversions API token
  8. Part C. Sending through the Conversions API
  9. Part D. Rules: how Espectro knows the sale belongs to this product
  10. Part E. Each product's card
  11. Part F. Test sending to Meta
  12. Part G. Link the same Pixel to the Espectro Pay checkout
  13. How to know it worked
  14. Watch out
  15. Common problems and fixes

Who does it

The account owner or the team can create, edit and test products (Pixel ID, sending mode, rules). Only the owner pastes the Conversions API token. The team does not see that field and can only delete a product that has no token.

Why one Pixel per product

The Pixel is how Meta learns who buys. If two different products use the same Pixel, Meta mixes up the buyers and starts showing the ad to the wrong people. With one Pixel per product, each campaign learns only from the buyers of that product. That is why, in Espectro, the Pixel always belongs to the product, never to the store.

Variations of the same product

Espectro's recommendation: one Pixel per product, with its sizes and colors in the same Pixel. Whoever buys the same bed sheet in another size or color is the same audience, and Meta learns better with all of the product's purchases together in a single Pixel. The decision is yours: the Products and pixels screen shows this recommendation at the top, but accepts whatever Pixel you set up.

How to do it, when each size (or color) is a separate product in the checkout (the same bed sheet in 4 sizes): in Products and pixels create just one product, with the Pixel, the token and one rule for each size (source Espectro Pay, Source ID = the id of each one), and paste the same Pixel ID in the Meta pixel card of each checkout product. Do not create one Espectro product per size with the same Pixel (if there are two, the page events use the one whose Source ID rule matches the checkout product; without that rule, the first one). A color or other option chosen within the same checkout product already counts as the same product. Different products should not share a Pixel (see above).

Before you start

  • Shortcut: if the product is on Espectro Pay and Meta is connected in Catalog, the Catalog's Set up everything creates the Pixel and the product here on its own (Catalog). Then you only need to check it (Part E). See Part B.
  • Having at least one sale received helps you build the rules (Part D).

Step by step

Part A. Create a product

  1. In the Settings group, click Products and pixels and open the New product card.
  2. Fill in Name, Meta pixel ID (numbers only), Conversions API token (only the owner can save it), Test code (optional, only for testing; Part F), Product cost (R$) (optional; see product cost) and Sending through the Conversions API (Part C).
  3. Under Rules: the sale belongs to this product when, build the rule (Part D).
  4. Click Create product. "Product created." appears.

If the token is rejected when you create the product, the product is still created: "Product created, but the token was not saved: ... Fix it in Edit." appears and the list reloads with it (do not create it again).

New product (token blurred) and Products seen in sales
New product (token blurred) and Products seen in sales

Product cost

How much each unit costs you (supplier, pass-through). It is optional. When filled in, each paid sale that matches the product (Part D) gets this cost, times the quantity, and it comes out of the net revenue in the Overview and in the profit per campaign (Read your numbers). The cost is saved on the sale at the time of payment: changing the amount later does not change sales already paid.

It applies to sales from Zedy and other platforms. Espectro Pay sales use the checkout product cost (Checkout products), which comes with the sale. If you already enter this cost in Expenses, leave the field empty, or it counts twice. A value that is not money is rejected with "Invalid product cost.".

Part B. Pixel and Conversions API token

The Conversions API token is what lets Espectro send the purchase to Meta through the server. Only the account owner can save it. Once saved, it is not shown again: the field help shows "already saved; empty = keep". To change it, paste a new token and save. There is no way to remove only the token: to do that, delete the product (Part E).

Easy path (Espectro Pay product): Catalog > Set up everything (Catalog). It creates the Pixel with the product name, creates the product in Products and pixels with the right rule, saves the Pixel in the checkout and, if the Catalog connection does not expire, already uses its token. If Products and pixels already has a product with a rule for that id, it reuses that product's Pixel.

Always prefer the easy path. The token generated in Events Manager belongs to another app, and Meta's platform rules do not let Espectro use a third-party token. This use will be turned off: a product with a pasted token will show "Reconnect through Meta" and the purchase will stay as not sent. The right path is the token from the connection made through the Meta window (Catalog or ad account, with the product's dataset assigned).

Manual path (temporary, only while pasted tokens still work):

  1. On Meta, in Events Manager, create a dataset (Pixel) with the product name. Write down the ID (numbers only).
  2. In that Pixel's settings, in the Conversions API section, generate the access token and copy it.
  3. Still on Meta, in Events Manager > dataset > Settings > Traffic permissions, add to the list the sales page domain and pay.espectrosolucoes.com.br (if you use Espectro Pay). This list applies only to the browser Pixel (the Conversions API does not go through it). Turn on automatic advanced matching.
  4. In Espectro, in Products and pixels, create the product with the Meta pixel ID, the Conversions API token (owner only) and the rule (Parts A and D).
  5. In Espectro Pay's Checkout products, paste the same ID in the Meta pixel card (Checkout products).
  6. In the page script, use the same ID in data-pixel (Install the script).
  7. Test with the Test code and the Test button (Part F). Then delete the code.

Meta's screen names change from time to time. If you cannot find it, search Meta's help for "generate Conversions API access token".

Part C. Sending through the Conversions API

In Sending through the Conversions API, choose:

  • Automatic (follows the page script): the default. Sends, unless the sale comes from a page in observe mode (Install the script). A sale without a click ID also stays observed only if any page in the account used observe mode in the last 7 days;
  • Always send: sends the purchase and AddPaymentInfo even if the page is in observe mode. Events from a page in observe mode still do not go out;
  • Observe only (UTMify still sends): nothing from this product goes out through the server; Espectro records the purchase, the AddPaymentInfo and the checkout start it would have sent. It does not change the browser Pixel: the Espectro Pay checkout keeps firing.

Pixel that is already on Zedy: when you create the product (or add a Pixel to a product that had none), if that Pixel already shows up in the account's Zedy, the product starts as Observe only, with a notice on the card. Espectro considers the Pixel to be on Zedy when another product with the same Pixel has a Zedy rule, or when Zedy sales linked to that Pixel have already arrived (through the page click with data-pixel, or through the rule of another product with that Pixel). The reason: Zedy sends the purchase to the Pixel with its own order id, which never reaches Espectro; if Espectro sent it too, Meta would count the same purchase twice. You can change it later, in Edit: switch to Always send only when Zedy (or its tool) stops sending the purchase to that Pixel. Once it leaves Observe only, the notice goes away.

When to use each one, so the purchase is not counted twice: So the purchase is not counted twice.

Part D. Rules: how Espectro knows the sale belongs to this product

Each checkout sends the product its own way. The rule says: "the sale belongs to this product when...".

  1. Under Rules: the sale belongs to this product when, choose the source (Any source, Espectro Pay, Zedy or Other platform), the field (Product name or Source ID) and the value.
  2. For Source ID, the value has to match exactly. For Product name, uppercase letters, accents and extra spaces do not count.
  3. If two rules match the same sale, the product created first wins.
  4. Another rule adds a line; the X removes it.

The right rule for an Espectro Pay product: source Espectro Pay, field Source ID, value = the product id in Pay (shown in the product's Meta pixel card, in Checkout products). Do not use the name: in Espectro Pay the name arrives with the chosen option (example: "Lençol - Cor: Bege") and a name rule fails.

Use the "Products seen in sales" list: at the bottom of the screen, each product exactly as the checkout sent it (columns Source, Name at source, Source ID or "not sent", Sales and Product in Espectro; up to 100 rows). Click Use in new product: the New product card opens with the name and the rule already filled in (by Source ID when it is sent; otherwise, by name). Complete the Pixel and the token and click Create product. A row that already matches shows a badge with the product under Product in Espectro.

Part E. Each product's card

At the top of the screen is the recommendation "one pixel per product; sizes and colors of the same product share the same pixel", with the Why link (variations). It is only guidance: the screen accepts the Pixel you choose.

Each product shows:

  • Pixel (or No pixel);
  • CAPI token: Saved or Missing;
  • Test code (or Not used);
  • Product cost (or Not used);
  • Matched sales (and how many are paid);
  • Conversions API sending (Automatic, Always send or Observe only) and, when the product started out observing because the Pixel is already on Zedy, the notice with the reason (Part C);
  • Rules ("No rules: no sale matches this product." when there are none).

Edit opens the form; that is where Delete product is ("Delete this product and its token? Sales stay, they just stop matching."). The team can create and edit products, but does not see the Conversions API token field and can only delete a product without a token (with a token, Delete product does not show up for them).

Products and pixels with each product's card (Pixel, token and rules)
Products and pixels with each product's card (Pixel, token and rules)

Part F. Test sending to Meta

  1. On Meta, in Events Manager, open the product's Pixel and the test events area. Copy the test code (example: TEST12345).
  2. In Espectro, in Edit, paste it in Test code and click Save product.
  3. Click Test on the card (it only works with a Pixel and a token). It sends a R$1.00 purchase from "Teste Espectro" and ignores the sending mode. Without a saved Test code, the test does not show up in your Meta test area.
  4. "Test purchase sent with code ... Check it under Test events in Events Manager." appears. (It is the same Events Manager as in Part B.)
  5. On Meta, the purchase shows up within seconds.
  6. Delete the Test code and save. While it is filled in, everything Espectro sends through the server to that Pixel (visits, checkout starts, PIX generated and real purchases) goes out marked as a test.

Part G. Link the same Pixel to the Espectro Pay checkout

Use the same Pixel here and in the Espectro Pay checkout: paste the same ID in the product's Meta pixel card (Checkout products). That way the Pixel also fires in the customer's browser (visit, checkout start and purchase). The Catalog does this on its own when it creates the Pixel.

How to know it worked

  • The product card shows the Pixel, CAPI token: Saved and Matched sales going up.
  • In Events, purchases show as Sent.
  • In Sales, the Pixel column shows Sent for paid sales (or Observed, when sending is only observing).

Watch out

  • One Pixel per product. Do not use the same Pixel on different products. For variations of the same product, use one Espectro product with several rules, never two Espectro products with the same Pixel (see above).
  • The token is not shown again after it is saved ("already saved; empty = keep").
  • Use the same Pixel here and in the Espectro Pay checkout (the product's Meta pixel card).

Common problems and fixes

ProblemWhy it happensFix
Test is grayed out.The Pixel or the token is missing.Add both.
"Failed: ..." on the test.Wrong token, expired, or from another Pixel.Generate a new one in the right Pixel and paste it again.
Events shows "Sale with no product in Espectro".No rule matches the sale.Use Use in new product (Part D) or adjust the rule.
Events shows "Product without a token".The token was not saved.Only the owner can save the token. Ask the owner.
The sale shows as Observed and does not reach Meta.The product is set to Observe only, or to Automatic with the page script in observe mode.Switch to Always send, or remove observe mode from the script (Install the script), once the other tool stops sending.
Real purchases showing up as tests.The Test code was left filled in.Delete the code and save.
The new product ended up in Observe only without you choosing it.The Pixel already shows up in the account's Zedy (Part C).Leave it that way while Zedy sends the purchase to that Pixel. When it stops, switch to Always send.
Meta counts the sale twice.Another tool sends the same purchase to the same Pixel, or the old Pixel code is still on the page.Use observe mode while the other tool is sending, and remove the old code from the page (counted twice).
"Reconnect through Meta" on the product.The hand-pasted token is no longer accepted.Use the easy path through Catalog or the Meta connection (Part B).
"Only the account owner can change connections, keys and tokens."Your role is Team.Only the owner can save the token.