Send store purchases to Meta and TikTok from the server (Conversion API)

Store

How do I turn on the Facebook Conversion API for my store?

The pixel runs in the customer's browser, so some purchases are lost when the browser or an ad blocker stops it, or the customer closes the page after paying. With an access token added, every store order is also sent from Mahjoz straight to Meta or TikTok, and the platform counts it once even if the browser sent it too.

Before you start: the Meta Pixel ID or TikTok Pixel ID must already be added in the same tab (see the article on connecting tracking tools and pixels).

  1. Create the access token in your platform account:
    • Meta: open Events Manager, choose the pixel, then Settings, and under Conversions API click Generate access token.
    • TikTok: open Events Manager in TikTok Ads Manager, choose the pixel, then Settings, and click Generate Access Token.
  2. Open Store from the sidebar, then Store Settings, and choose the Tracking & pixels tab.
  3. In the Meta Pixel or TikTok Pixel card, paste the token into Access Token.
  4. (Optional) To test, copy the code shown in the Test Events tab of Events Manager into Test Event Code.
  5. Click Send test event. You see "The test event reached Meta" when the token works, or the reason it was refused.
  6. Click Save changes in the bar at the bottom of the page.
  7. When you are done testing, clear Test Event Code and save; while it is set, events go to Test Events only and do not count in your ads.

A Last send line then appears under the card with its time and result:

  • Delivered: the platform accepted it.
  • Rejected: the token or pixel ID is wrong, or the token was revoked. Create a new token and paste it in.
  • Failed: the platform could not be reached after several automatic retries.

When the card has no access token, the line reads "Works from the browser only" and the pixel keeps working as before.

Send customer data (hashed): on by default. The customer's phone and email are hashed and sent so Meta and TikTok can match the purchase to the ad more accurately; neither is sent in readable form. You can turn it off with the Send customer data (hashed) switch in the same tab. If you keep it on, mention in your store's privacy policy that you share hashed data with ad platforms to measure campaigns.

Notes:

  • Only store orders are sent. Orders you create from the dashboard, the cashier or payment links are not.
  • The access token is never shown in full after saving. To change it, click Replace and paste the new one; leaving the field empty keeps the current token.
  • An order reaches the platform within a minute or two of being created.

Sell anything.Run everything.Grow every customer.

  1. WebsiteFor your customers

  2. DashboardFor you

  3. Staff appFor your team

  4. POSFor your team

  5. Customer appFor your customers

Run your whole business on one platform. Talk to our sales team and we'll show you Mahjoz working the way it would in your business.

  • Free demo
  • No commitment
  • No commission on your sales

+966 58 150 4066 · info@mahjoz.io