Trackora documentation
Everything you need to connect your website, send every event to Meta, Google Analytics 4 and TikTok — from the browser and the server — and turn real orders into Purchase events.
What Trackora does
Your ads platforms learn which ads bring sales from the events your website reports: page views, products viewed, add to cart, checkout and purchases. Most websites report them only from the visitor's browser (the Pixel). Ad blockers, iPhone privacy settings and slow pages stop many of those reports, so the platforms see only part of your results — and optimise your ads on half the picture.
Trackora sends every event twice, safely:
- From the browser — the Meta Pixel, the Google tag and the TikTok Pixel, loaded by our code.
- From our server — Meta Conversions API, GA4 Measurement Protocol and TikTok Events API. Ad blockers cannot stop it.
Both copies carry the same event ID, so each platform counts the event once. On top of that you get incomplete-order recovery, Purchase only for confirmed orders, live event monitoring and higher match quality.
<head> and enter your platform IDs in your panel. No Pixel code, no plugin, no developer. Your website can be built with anything and hosted anywhere.Getting started
- Create your account. Go to trackora.capstechit.com/app/?p=signup and enter your name, mobile, email, a password and your website. One account tracks one website.
- Pay the service fee. In your panel open Billing, pay to one of the accounts shown (bKash, Nagad …), then enter the method, the number you paid from and the transaction ID.
- Wait for activation. We check the payment and activate your account — usually within a few hours. Your panel opens fully and tracking starts.
- Connect your website — paste the code (next section).
- Enter your Meta, GA4 and TikTok details in Website settings (how to find them).
- Check it on the Installation page and in Live events (how).
- Set up order confirmation so confirmed orders become Purchase events (Order sync).
Connect your website
Open Installation in your panel and press Copy code. The code looks like this (yours contains your own website key):
<!-- Server Tracker · paste once inside <head> -->
<script data-cfasync="false" data-no-optimize="1" nowprocket>window.ST=window.ST||{q:[]};…</script>
<script async data-cfasync="false" data-no-optimize="1" nowprocket src="https://trackora.capstechit.com/s.php?id=YOUR-KEY"></script>
<!-- End Server Tracker -->
Paste it once, just before </head>, so it is on every page of your website. This is the only code your website needs — it stays the same even when you change your settings later.
Where is the <head>?
| Website type | Where to paste |
|---|---|
| WordPress / WooCommerce | Install the free plugin WPCode (Insert Headers and Footers) → Code Snippets → Header & Footer → Header → paste → Save. Or your theme's "Header scripts" box, or Elementor → Custom Code → location <head>. Then clear the cache of your cache plugin and Cloudflare. |
| Custom PHP / HTML | The shared header file, often header.php, layout.php or includes/head.php — before </head>. |
| Laravel | resources/views/layouts/app.blade.php (your main layout), before </head>. |
| Shopify | Online Store → Themes → ⋯ → Edit code → theme.liquid → before </head>. |
| Website builders | Settings → Custom code / Header scripts → paste → "All pages" → save and publish. |
| Google Tag Manager | New tag → Custom HTML → paste → trigger All Pages → Save → Publish. |
| React / Next.js / Vue | index.html or the root layout's head. Page changes without reload are detected automatically. |
Meta, Google Analytics 4 & TikTok
Open Website settings, enter the details and press Save settings. Each platform switches on as soon as its details are saved — the badges at the top of each box turn green.
Meta (Facebook & Instagram)
- Pixel / Dataset ID — Meta Events Manager → Data sources → your dataset (Pixel). The 15–16 digit number under its name.
- Conversions API access token — the same dataset → Settings → Conversions API → Generate access token. Copy the whole token.
Leave Test event code empty for real tracking (see Test events).
Google Analytics 4 (optional)
- Measurement ID — GA4 Admin → Data streams → your web stream → the ID starting with
G-. - Measurement Protocol API secret — the same web stream → Measurement Protocol API secrets → Create → copy the secret value.
GA4 cannot merge two copies of an event, so each GA4 event is sent one way only: page views by the Google tag in the browser, all other events from the server (recommended setting).
TikTok (optional)
- Pixel ID — TikTok Ads Manager → Tools → Events → Web events → your Pixel (the ID starting with
C). - Events API access token — the Pixel → Settings → Events API → Generate access token.
Other settings
| Setting | What it does |
|---|---|
| Main currency, country, phone country code | Used when the website shows no currency, sent as the customer's country, and to turn local numbers (017…) into international ones (88017…). |
| Currency of each event | The currency the website shows (recommended) or Always the main currency. See Currency. |
| Send the Purchase event | Only when the order is confirmed (recommended — fake orders never count) or As soon as the order is placed. |
| Save incomplete orders | Keeps checkouts where the visitor typed a phone or email but did not order. |
| Automatic events | Switch any automatic event on or off. |
| Protect against double counting | Ignores events from other Pixel / GA4 code left on the website. Keep it on. |
| Count repeats of the same action | The same visitor's same page, product, cart, form or contact link counts once within this time (default 30 minutes) — reloads, the back button, double clicks and in-app browsers opening a page twice are not sent again. Every time switches it off. |
| Advanced: URL patterns, selectors, button words | Only needed for unusual websites — e.g. a thank-you page whose address does not contain "thank", "success" or "order-received". |
Check that it works
1. Installation → Connection status
- Code loaded on the website and Events received turn green within a minute after someone opens your website.
- Test from this browser checks that browsers can reach the tracker.
- Check now opens your home page and reports whether the code is there, delayed by a speed plugin, loaded over http on an https site, pasted as text, or accompanied by other Pixel code.
2. Live events
Open Live events, then browse your website in another tab. Every event appears within seconds, with what Meta, GA4 and TikTok answered and which customer data was sent. One row is one event: Browser + Server means the same event went both ways with one event ID and Meta keeps it once. The Visitor tag shows which rows come from the same browser — several PageViews of one page with different tags are different people. Choose a day or a date range, an event, the source or the delivery status to filter the list. waiting means it is being sent; failed shows the platform's reason and is retried automatically.
3. On your website: ?st_debug=1
Open any page of your website with ?st_debug=1 at the end of the address, e.g. https://yourshop.com/?st_debug=1. A small panel shows each event the moment it fires, with Pixel ✓ and Server ✓ and its event ID. Turn it off with ?st_debug=0. Meta Pixel Helper / Meta Ads Data Advisor show the same events with the same event ID.
4. Meta Events Manager
Real events appear in Events Manager → Overview after a few minutes (up to 20), marked Browser · Server. Days are counted in your ad account's time zone.
Events tracked automatically
| Event | When | GA4 / TikTok name |
|---|---|---|
| PageView | Every page, also page changes in single-page apps | page_view · Pageview |
| ViewContent | Product pages (read from the product data shops publish — schema.org / Open Graph — or your selectors) | view_item · ViewContent |
| AddToCart | "Add to cart", "Buy now", "অর্ডার করুন" … buttons, WooCommerce AJAX buttons, dataLayer | add_to_cart · AddToCart |
| InitiateCheckout | Checkout page or order form — sent as soon as the customer's phone / email is known (max. 40 s), so it carries them | begin_checkout · InitiateCheckout |
| Incomplete order | Checkout / order form with a phone or email that was not ordered (shown in Orders, not sent to platforms) | — |
| Order placed | Thank-you page or success message — order number, total and products read from the page | — |
| Purchase | When the order is confirmed (details) | purchase · CompletePayment |
| Lead | Other forms with a phone or email (contact forms, Contact Form 7, Elementor, WPForms … only when sent successfully) | generate_lead · SubmitForm |
| Contact | Clicks on phone, WhatsApp, Messenger and email links | contact · Contact |
Products are sent with ID (SKU), name, price and quantity; values with their currency.
Orders & Purchase
Cash-on-delivery shops receive many orders that are never accepted. If each of them became a Purchase, your ads would optimise for fake orders. That is why Trackora sends Purchase only when an order is confirmed:
| Status | Meaning |
|---|---|
| Incomplete | The visitor typed a phone or email in the order form but did not order. Call them from Orders (call / WhatsApp buttons) to recover the sale. |
| Waiting | The order was placed (thank-you page or success message). |
| Confirmed | Confirmed on your website (Order sync) or in Orders → Purchase is sent to Meta, GA4 and TikTok. |
| Cancelled | Nothing is sent. |
- Once per order. Purchase is never sent twice, however often an order is confirmed.
- The customer's own data. Purchase is sent with the browser data saved when the customer ordered (IP, device, fbp, fbc, visitor ID, TikTok click ID), so it matches the ad click even if you confirm it days later (within 7 days).
- The real value. The website's own total when it arrives by webhook or database sync, otherwise the total read from the thank-you page, otherwise the sum of the products.
- Orders the tracker never saw in a browser (for example phone orders sent by webhook) are sent as system generated so Meta accepts them.
Order sync — confirm on your website, Purchase follows
Choose one or more on the Order sync page. Orders are matched by order number (or the customer's phone).
Webhook
Your panel shows your private webhook URL. Paste it into your platform:
- WooCommerce — WordPress admin → WooCommerce → Settings → Advanced → Webhooks → Add webhook → Status Active, Topic Order updated, Delivery URL = your webhook URL, API version WP REST API v3 → Save. Mark an order Completed to test.
- Shopify — Settings → Notifications → Webhooks → Create webhook → event Order fulfillment (or Order payment), format JSON, URL = your webhook URL.
- Automation and courier tools (Zapier, Make, n8n, Pabbly, courier services) — an HTTP POST step to your webhook URL with
order_idandstatus. - Custom websites — a "webhook URL" setting if there is one; otherwise the developer adds one call where the order status is saved:
POST https://trackora.capstechit.com/api/webhook.php?key=YOUR-WEBHOOK-KEY
{"order_id": "1234", "status": "confirmed", "total": 1500}
The webhook accepts JSON, form data or a plain GET link, single orders or lists, and many field names (order_id, number, invoice … · status, order_status, fulfillment_status … · total, amount …).
Database sync — no code
Give a read-only database user of your website and choose the orders table and its columns (order number, status, total, update time). The tracker reads new status changes every minute.
Admin panel detection — no code
Paste the same head code into your website's admin panel layout and pair your browser once with the link from Order sync. When you click Confirm / Cancel (or choose such a status) in your admin panel, the order is confirmed or cancelled here too — a 5-second Undo appears first.
Status words
Which of your website's statuses mean confirmed or cancelled is editable, in any language, including numbers. Defaults include confirmed, approved, shipped, delivered, completed, paid, কনফার্ম … and cancelled, rejected, failed, refunded, returned, fake, বাতিল ….
processing to the confirm words so Purchase is sent when the payment arrives. Do not add it for cash-on-delivery shops.Every status received is listed under Order sync → Received from the website with what happened, so you can see at once if something did not match.
Event Match Quality
The platforms match each event to a person using the customer information sent with it. The more is sent, the more conversions are attributed to your ads. Trackora sends, hashed with SHA-256 where required:
| Information | Sent |
|---|---|
| External ID (visitor ID), browser ID (fbp), IP address, user agent, country | With every event |
| Email, phone, first and last name, city, state, ZIP | As soon as the visitor types them in any form, and for 90 days after that |
| Click ID (fbc) / TikTok click ID (ttclid) | For every visitor who arrived by clicking an ad |
The Match quality page shows the share of events carrying each item. To raise it:
- Ask for an email at checkout, even as an optional field — the biggest single improvement.
- Keep the phone field — Bangladeshi numbers are converted to international format automatically.
- Click IDs exist only for ad clicks; visits from search, direct visits and tests cannot have them, so 100% is not possible and not expected.
No double counting
- Same event ID. The browser and the server send each event with one event ID; Meta and TikTok keep one (Events Manager shows Browser · Server).
- GA4 gets each event once — page views from the browser, everything else from the server.
- Leftover code is ignored. Other Pixel code on the website cannot add its own copies to your Pixel, and a second initialisation of your Pixel is skipped.
- Purchase once per order, guaranteed even if two confirmations arrive at the same moment.
- A reload of the thank-you page does not create a second order.
- Repeats are not sent again. When the same visitor reloads a page, goes back, double-clicks "Add to cart", opens the same page twice in an in-app browser, or the theme rewrites the address (removing fbclid / utm, choosing a colour or size), the same PageView, ViewContent, AddToCart, InitiateCheckout, Lead or Contact is not sent again within the time set in Website settings → Count repeats (30 minutes by default) — neither by the Pixel nor by the server.
- Different visitors are always counted: many PageViews of one landing page at different times are usually different people clicking the same ad.
Currency
With The currency the website shows, each event goes in the currency customers see next to the prices — ৳ / Tk / টাকা (BDT), $, €, £, ₹, ¥, AED, SAR, MYR and more, also on multi-currency shops. If a theme or plugin reports the wrong code (for example USD on a shop that shows ৳), the symbol customers see wins. With Always the main currency, every value is sent in your main currency. The dashboard shows revenue per currency.
Delivery & retries
- Events go to the server immediately, so they are not lost when the visitor leaves the page.
- Several routes. If one address of the tracker is blocked (an ad blocker rule, a firewall, the website's security policy), the browser tries the next one: a second address, then an image request, then sendBeacon. The head code also loads the script from a second address if the first one is blocked.
- Nothing is lost while the tracker cannot be reached. Every event waits in a small outbox in the visitor's browser until the tracker confirms it. If the network drops, the tracker's hosting blocks requests for a while, or the page closes too early, the event is sent on the next page or the next visit (up to 3 days) — with its original time, and never twice. Installation shows how many events were recovered this way.
- Your own tracking domain (e.g.
data.yourshop.com, a CNAME to the tracker) is the strongest protection against ad blockers; ask your provider to set it up. Purchase never depends on the browser: it is sent from the server when the order is confirmed. - If Meta, GA4 or TikTok does not accept an event (for example a temporary outage), it is retried automatically with growing pauses (1, 4, 9, 16 … minutes). Purchase events are retried the same way.
- Failed events of the last 7 days can be sent again at any time with Event log → Retry failed — for example after you fix an expired access token. Meta and TikTok accept events up to 7 days old.
- If the website's webhook could not reach the tracker, the order simply stays Waiting — confirm it in Orders, or use Database sync, which catches missed status changes every minute.
Visitors & realtime
The Visitors page shows who is on your website and what they do — built from the same events, nothing extra to install.
- Right now: visitors active in the last 5 minutes, visitors per minute over the last 30 minutes, the pages they are on and where they are. It refreshes every 5 seconds.
- Live visitors: one card per visitor with location, phone model or device, system, browser (including the Facebook / Instagram / TikTok in-app browser), traffic source, current page and how far they got (viewed a product, added to cart, at checkout, ordered).
- Reports for any day or date range: visitors, new and returning, page views, mobile share, checkout and order rates; a map; top cities, regions and countries; devices, popular phones, systems and browsers; traffic sources; the visitor journey and top pages. Filter by device, country, source, journey or search.
- One visitor: click any visitor for the full profile and a timeline of every page and action, visit by visit, with their orders.
About locations. The location comes from the visitor's IP address — no permission prompt and no GPS, so it is approximate. Countries and regions are reliable; on mobile data the city is often the operator's hub (for example Dhaka). The tracker uses DB-IP's free location database on its own server, so IP addresses are never sent to another service. IP geolocation by DB-IP.
About privacy. The visitor tag is a random ID of the browser, not a person's name. If you show visitor analytics, mention it in your website's privacy policy.
Your panel, page by page
| Page | What you find there |
|---|---|
| Dashboard | Events, delivery rate, orders waiting, confirmed orders and revenue; charts by day and event; order funnel; traffic sources of orders; recent errors. 24 hours, 7, 30 or 90 days. |
| Visitors | Who is on the website right now, locations on a map, devices, phones, browsers, sources, the visitor journey and each visitor's full timeline — for any day or date range. |
| Live events | Every event as it arrives, with totals for the chosen day or date range; filters by event, source, delivery status and visitor; search, pause and "Load older events". |
| Orders | Incomplete, waiting, confirmed and cancelled orders with customer, products, value and source; filter by day / date range and traffic source, with the total value; confirm, cancel, note, call or WhatsApp; bulk actions. |
| Order sync | Webhook URL and guides, Database sync, Admin panel detection, status words and the log of statuses received. |
| Event log | Every event (any day or date range) with each platform's exact answer and payload; resend one event or retry all failed ones. |
| Match quality | Which customer information goes with each event type, and how to improve it. |
| Test | Send a test event and see the platforms' answers. |
| Installation | Your code, connection status and checks. |
| Website settings | Meta, GA4, TikTok, currency, Purchase and automatic event settings. |
| Billing · My account | Your plan, payments and renewal; your details and password. |
For developers (optional)
Everything above is automatic. To send extra events or exact data from your own code, use the ST object (available as soon as the head code is on the page):
// a custom event (sent to Meta, GA4 and TikTok, browser + server)
ST.track('VideoPlay', { video_title: 'Intro' });
// a standard event with products
ST.track('AddToCart', { value: 1250, currency: 'BDT',
items: [{ id: 'SKU-1', name: 'Cotton Panjabi', price: 1250, quantity: 1 }] });
// customer details you already know (hashed before sending)
ST.identify({ email: 'customer@example.com', phone: '01700000000', first_name: 'Rahim', city: 'Dhaka' });
// an order placed, with exact data (e.g. on your thank-you page)
ST.order({ order_id: '1043', value: 2450, currency: 'BDT',
items: [{ id: 'SKU-1', name: 'Silk Saree', price: 2300, quantity: 1 }],
user: { phone: '01700000000', email: 'customer@example.com' } });
Without JavaScript, add attributes to any button, link or form:
<button data-st-event="Subscribe" data-st-params='{"plan":"pro"}'>Subscribe</button>
Shops that push GA4 / Universal Analytics e-commerce data to the dataLayer (view_item, add_to_cart, begin_checkout, purchase) are read automatically.
Warnings in Meta Events Manager
| Warning | Meaning and what to do |
|---|---|
| Deduplication issue — "Some Conversions API events are missing deduplication keys" | Another integration also sends server events (Events Manager lists it as Conversions API with Meta, a partner app such as Meta for WooCommerce or Shopify, or a CAPI Gateway). Our events always carry an event ID. Turn the other one off: Events Manager → your dataset → Settings → Manage integrations, or in the plugin. |
| Prices in value are the same for all Purchase events | The orders so far had the same total (typical for test orders of one product). It clears after real orders with different totals. Check the values in Orders. |
| Send Meta Click ID (fbc) | fbc exists only for visitors who clicked a Meta ad, and is sent for all of them. It improves as ad traffic grows. |
| Send Email / Phone | Sent whenever the customer typed it. Add an email field to your checkout to send it more often. |
| Events received only from the server (Purchase) | Expected: Purchase is sent when you confirm the order, after the customer has left your website — only the server can send it then. |
Troubleshooting
"Code loaded on the website" stays grey
Press Check now on Installation. Usual causes: the code is not in the <head> yet, the website's cache still serves old pages (clear it), the code was pasted into a text box instead of an HTML / header-scripts box, or the website address in Website settings does not match your website.
The code loads but no events arrive
Press Test from this browser. If it reports a firewall, bot protection ("One moment, please…" page) or blocked requests, the tracker's hosting must allow requests to the tracker — contact support. The browser console of your website (F12 → Console) shows lines starting with [ServerTracker] with the exact reason.
The same event appears several times in Live events
Look at the Visitor tag. Different tags are different people (for example several clicks on the same ad) and are correct. Rows with the same tag and the same page within the Count repeats time should not happen with the current code — copy the code from Installation again, clear the website's cache, and remove any other copy of the tracker or Pixel code.
Events are in Live events but not in Events Manager
Wait 20 minutes; check that the Test event code is empty; check that the Pixel ID is the dataset you are looking at; open the event in Event log to see Meta's answer (for example an expired access token — generate a new one and press Retry failed).
Purchase is not sent
The order must be confirmed. Check Order sync → Received from the website: is the status arriving, and is it one of the confirm words? For WooCommerce, make sure the webhook topic is Order updated and its status Active. You can always confirm an order in Orders.
Events fire late on WordPress
A speed plugin delays old code. Copy the current code from Installation again and clear the cache.
Numbers differ from Events Manager
Events Manager merges the browser and server copies (one event, not two), counts days in the ad account's time zone and shows new events after a delay. Compare the same day and time zone.
Billing & account
- Your plan runs from the day your payment is confirmed. A renewal is added to the end of the current period, so paying early never loses days.
- A reminder appears in your panel 5 days before the plan ends.
- If the plan ends, tracking pauses and the panel shows only Billing. Your settings, orders and history are kept, and tracking continues the moment your renewal is confirmed — the code on your website stays the same.
- Forgot your password? Use Forgot password? on the sign-in page and contact support with your account's email.
Privacy & security
- Customer details (email, phone, name, city …) are hashed with SHA-256 before they are sent to Meta, Google or TikTok, and are not stored in readable form with events.
- Each account sees only its own website. Your webhook URL and access tokens are private — do not share them.
- Please mention in your website's privacy policy that you use the Meta Pixel, Google Analytics and TikTok Pixel with server-side measurement.