PHP and Laravel

Most custom stores in Bangladesh run on PHP. Add one class, call purchase when the order is created, and every ad platform gets it once, with the ad click that brought the shopper.

Start freeIntegration: availableIntegrations
  • PHP / Laravel
  • Browser SDK
Trakero
  • Meta CAPI
  • TikTok
  • GA4

What you get

  • Plain PHP

    PHP 7.4 or newer with the curl extension. Works in Laravel jobs, Symfony services, CodeIgniter or hand-written shops.

  • Browser context

    BrowserContext::shopperFromGlobals() captures IP, user agent and the SDK's cookies at checkout; store it on the order for later jobs.

  • COD lifecycle

    purchase, refund (per refund id) and cancel map directly to your order statuses.

  • Clear errors

    Rejected requests throw TrakeroException with the HTTP status and a code such as invalid_key.

Where browser-only tracking loses the sale

Pick a situation your shoppers are in and watch one order take both paths.

Today's deliveries

Purchase #1043

Chrome, ad blocker on · Meta CAPI · 0.4 s

The ad blocker stops the browser Pixel on its way to facebook.com. The same purchase leaves your server, reaches Meta through the Conversions API and is counted.

Sample deliveries. Pick a row to watch its route.

Shopper, Sent to, Took

Set up in minutes

  1. Add the browser snippet to your theme.
  2. Copy the SDK (composer package trakero/trakero-php) and set your secret key.
  3. Call $trakero->purchase(...) when the order is placed or confirmed.
track.yourstore.comTrakero

Your store → your domain → Meta, Google, TikTok

Questions

How do I install it?

The Composer package is trakero/trakero-php. Until it is on Packagist, add it from the Trakero repository (sdk/php).

Can I send from a queue?

Yes. Capture the shopper array at checkout, save it with the order, and pass it when your queued job sends the purchase.

Start counting every order today

Create a free account, connect your store and watch a test order arrive in Meta Events Manager.

Free plan · No card needed · Set up in one afternoon