Connecting ad and analytics tools
Connect Meta Pixel, TikTok Pixel, Google Analytics 4, Google Tag Manager, Google Ads and Microsoft Clarity, with server-side purchases and visitor consent.
If you advertise on Facebook, TikTok or Google, connect your tools to your platform to see which ad brought sales, and so your ads learn from real buyers. For complete visitor and sales numbers without connecting anything, open the analytics dashboard.
Who can use it?
Available on: Pro and Business. The platform owner and admins manage it.
Where do the tools run?
On your platform page, product pages, landing pages and the order confirmation page, and only after the visitor accepts cookies. They don't run on the dashboard or My library.
The events we send: page view, product view, checkout start and purchase. The purchase is sent from the browser and from Yarbah's server with the same id, so the tool counts it once.
General steps
- In the side menu open Marketing.
- Select Connect next to the tool.
- Write the ID (see the table).
- Optional but recommended: the server token, so a purchase counts even if the visitor's browser blocks the tool.
- Turn on Enabled on my platform and select Save.
- Select Send a test event. "The test event was received." appears.
| Tool | What to write | Server sending |
|---|---|---|
| Meta (Facebook and Instagram) | Pixel ID | Conversions API token |
| TikTok | Pixel code | Events API token |
| Google Analytics 4 | Measurement ID like G-XXXXXXX | Measurement Protocol API secret |
| Google Tag Manager | Container ID like GTM-XXXXXX | None. We send e-commerce events to the dataLayer |
| Google Ads | Conversion ID and Purchase conversion label | None |
| Microsoft Clarity | Project ID: 10 lower-case letters and digits | None |
Where do I get server tokens?
- Meta: in Events Manager: choose the pixel → Settings → Conversions API → Generate access token.
- TikTok: in TikTok Events Manager: choose the pixel → Settings → Events API → Generate access token.
- Google Analytics: Admin → Data streams → choose the stream → Measurement Protocol API secrets → Create.
Copy the whole token and paste it. It's stored encrypted, only its last 4 characters show afterwards, and it never reaches any visitor's browser. To change it, paste a new one, or select Remove the saved token.
Microsoft Clarity: session recordings and heatmaps
Clarity is a free Microsoft tool that shows how visitors browse your pages: recordings of real sessions, heatmaps of clicks and scrolling, and repeated frustrated clicks. It helps you understand why visitors don't finish buying.
- Open clarity.microsoft.com and sign in with a Microsoft or Google account.
- Select New project, and write your platform's name and address (such as https://name.yarbah.com or your own domain).
- From Settings → Overview copy the Project ID.
- In Yarbah open Marketing, select Connect next to Microsoft Clarity, paste the ID, then Save.
- Open your platform in a new window and select Accept on the banner; after a few minutes Clarity shows "1 user is online".
Clarity runs only after a visitor accepts, and we hide every form field in recordings automatically, so no email, phone or anything a visitor types appears. Don't change Clarity's masking mode to Relaxed.
Testing events
The Test event code (optional) field in Meta and TikTok: paste the code from the tool's "Test events" screen. While it's set, events go to the test screen only, so remove it once you've checked.
Server purchase events
Under the tools you'll find the last 50 purchase events we sent, marked Waiting, Sending, Sent or Failed. Failures are retried automatically up to 5 times.
Cookie consent
Your visitors see a consent banner. No tool loads before they agree, and no server event is sent for a buyer who didn't agree, under the personal data protection law. So the tools' numbers are lower than your Orders, and that's expected.
Messages you may see
- Check the IDs: the format is not valid.
- The token is not valid. Copy it in full.
- Add the server token first. (for the test event)
- The provider did not accept the test event. Check the token and ID.
FAQs about this page
Updated 21 November 2026