GuidesGA4 + Meta Pixel retargeting

GA4 + Meta Pixel retargeting

Fire a Google Analytics 4 event and a Meta Pixel event every time one of your dynamic QR codes is scanned, so you can measure scan-driven traffic and build retargeting audiences from people who scanned your print campaigns.

How it works

ExaRoutes fires these events server-side, from the redirect handler, in the moment between the scan and the visitor landing on your destination. That means:

  • The scan is attributed even if the visitor bounces before any page script loads.
  • You do not need to add ExaRoutes script tags to your destination site.
  • GA4 events go through the Measurement Protocol; Meta events go through the Conversions API.

Set a workspace default

Workspace defaults fire on every dynamic QR in the workspace.

  1. Go to Settings → Integrations.

  2. In the Analytics tags card, fill in the services you use:

    Google Analytics 4

    • Measurement ID (G-XXXXXXXXXX)
    • API secret

    Find both in GA4 → Admin → Data Streams → your stream → Measurement Protocol API secrets.

    Meta Pixel

    • Pixel ID
    • Conversions API access token

    Generate the token in Meta Business Suite → Events Manager → your pixel → Settings → Conversions API.

  3. Click Save.

Leave a field blank to disable that service. Editing analytics tags requires the Admin or Owner role.

Override for a single QR

Some campaigns need their own pixel. Open the QR from QR codes, and set its analytics tags on the QR detail page. A per-QR tag always wins over the workspace default for that QR.

Verify it

Scan one of your QRs, then check:

  • GA4: Reports → Realtime should show the event within a minute.
  • Meta: Events Manager → your pixel → Test Events.

Build the retargeting audience

In Meta Ads Manager, create a Custom Audience from the pixel event. In Google Ads, build the audience from the GA4 event. From there, run ads at everyone who scanned the printed code.