Integrations

Google Analytics 4

Server-side Measurement Protocol: every recorded click becomes a link_click event.

On Solo, Growth and Ultimate, Letlink can send a GA4 event for every recorded click using the Measurement Protocol. Nothing runs in the visitor's browser, so the event still arrives when they never load your site pixel — QR scans, in-app webviews, and instant redirects included.

Collect credentials

  1. In Google Analytics, open Admin → Data streams → your web stream.
  2. Copy the Measurement ID (G- followed by letters and numbers).
  3. Open Measurement Protocol API secrets and create a secret. Copy it once; GA4 will not show it again.

Paste them into Letlink

  1. Go to Integrations → Google Analytics 4. Owners and admins only.
  2. Paste the Measurement ID and the API secret, then save.
  3. To disconnect, clear the Measurement ID and save (leave the secret blank).

The event

Each recorded click dispatches event name link_click with engagement_time_msec=1. The GA4 client_id is the device fingerprint when we have one, otherwise click.{visit_id}. Parameters:

Parameter Meaning
short_code Back-half of the short URL
link_type direct, utm, appstore, instagram, mobile, or device
variation Split-test name, qr for scans, or empty
device_type For example desktop, smartphone
browser Browser family
session_id The numeric visit id, so GA4 can treat each click as its own session

Seeing it in GA4

Events can take up to 24 hours to appear in standard reports. For a quicker check, use Admin → DebugView after sending traffic, or Realtime if Measurement Protocol events are included on your property. Mark short_code and variation as custom dimensions if you want them in explorations.

What this is not

  • It does not load gtag.js on the redirect.
  • It does not stitch the click to a later session on your destination site. The client id is Letlink's fingerprint, not your site's _ga cookie.
  • It does not fire when the monthly click cap has been hit or when a device visit limit blocks the redirect.

Still have questions?

We're here to help. Reach out and we'll get back to you as soon as we can.