# Track Social Media Ad Clicks and Deep Links Without Losing Attribution (2026)

URL: https://fulinlabs.com/blog/track-social-media-ad-clicks-deep-links-2026/
Published: 2026-11-19
Product: shortlink
Summary: Why ad-dashboard clicks never match site sessions, which click IDs and UTM macros must survive the redirect, and a step-by-step setup for Meta, TikTok and Google ads.

If your ad dashboard says 1,000 clicks and your analytics says 640 sessions, nothing is necessarily broken. The two systems count different events, and the useful question is not "why don't they match" but "can I still tell which campaign, ad set and ad produced the visits that did arrive, and can I see the clicks that never turned into a page view?"

I'm Giovanni, and I build [ShortLink](/projects/shortlink/) at Fulin Labs. This guide covers the general mechanics first; the ShortLink-specific part is short and at the end, including what it does not do.

## Why ad clicks and site sessions disagree

An ad click is recorded the moment someone taps. A session is recorded only after your page loads and your analytics script runs. Several things sit between those two moments.

- **In-app browsers.** Taps on ads in Instagram, Facebook, TikTok and YouTube usually open the destination in the app's own embedded browser, not in Safari or Chrome. These browsers have their own cookie storage, may block or limit scripts, and are easy to close before the page finishes loading.
- **Bounces before load.** A slow landing page, a bad connection or an accidental tap means the visitor leaves before your analytics fires. The platform still counts the click.
- **Previews and bots.** Messaging apps and some networks fetch a link to build a preview. These fetches are not people, and they usually do not run JavaScript, so they never appear in site analytics. A redirect service that records raw requests will see them unless it filters them.
- **Lost parameters.** If a redirect or page drops the query string, the visit still arrives but is filed under "direct" or "unassigned".
- **Consent and blockers.** Visitors who decline analytics, or use a blocker, are invisible to your site numbers.

So treat the dashboard click count as an upper bound on interest, and the session count as a lower bound on arrivals. A redirect you control sits between the two and can count the request before your page has a chance to fail. That is a third data point, not a replacement for either.

## Click IDs: why the redirect has to forward them

Ad platforms append an identifier to the landing URL so they can match a visit to the ad that produced it.

| Platform | Click ID parameter |
|---|---|
| Meta (Facebook, Instagram) | `fbclid` |
| Google Ads | `gclid` (also `gbraid`, `wbraid` for some app and iOS cases) |
| TikTok | `ttclid` |
| Microsoft Advertising | `msclkid` |

These are appended to whatever URL you gave the ad. If that URL is a short link, the click ID arrives at the short link, not at your site. The redirect then has to pass it along. If it does not, your site never sees the identifier, and conversion matching that relies on it has less to work with.

The same applies to UTM parameters that the platform adds through macros: they land on the short link first. A well-behaved redirect forwards them to the destination whenever the destination does not already carry its own. If it did carry its own UTMs, keep those: the destination's explicit values should win over the incoming ones, and your team should know which set is authoritative.

## UTM macros per platform

You do not want to hand-tag every ad. Each platform can fill values in at click time. Put the macro in the platform's URL parameters field (or append it to the URL), and the value is substituted with the real campaign, ad set and ad names.

| Platform | Campaign | Ad group / set | Ad / creative | Other useful |
|---|---|---|---|---|
| Meta | `{{campaign.name}}` | `{{adset.name}}` | `{{ad.name}}` | `{{placement}}`, `{{site_source_name}}` |
| TikTok | `__CAMPAIGN_NAME__` | `__AID_NAME__` | `__CID_NAME__` | `__PLACEMENT__` |
| Google Ads | `{campaignid}` | `{adgroupid}` | `{creative}` | `{keyword}` |

A typical Meta URL parameters string looks like this:

```
utm_source=facebook&utm_medium=paid-social&utm_campaign={{campaign.name}}&utm_content={{ad.name}}&utm_term={{adset.name}}
```

Two cautions. First, check each platform's current documentation for the exact macro list, because names and availability change and some are limited to certain placements or campaign types. Second, Google Ads `{campaignid}` and `{adgroupid}` substitute numeric IDs, not names. That is fine for joining to a report, less readable in a dashboard.

Macro values carry whatever you typed into the ad manager, so they inherit its inconsistencies. Name campaigns in lowercase with hyphens before you rely on them; the reasons are in [UTM builder for short links](/blog/utm-builder-short-links-2026/).

## Deep links, web links and in-app browser opens

These three get confused, and they behave differently.

- **Web link.** A normal https URL. On a phone, tapping it in a social app typically opens the in-app browser. Your page loads in a web view.
- **Deep link.** A link that opens a specific place inside a native app. This is done with a custom URI scheme (`myapp://product/42`), or with a universal link (iOS) or app link (Android), which is a normal https URL that the operating system routes to an installed app when it is configured for that domain. If the app is not installed, you need a fallback, usually the store page or the web page.
- **In-app browser open.** What happens when a social app opens a web link inside itself. This is not a deep link; it is the app keeping the visitor inside its own browser.

The practical consequence: a plain web link in an ad is read by the destination as an in-app browser visit. The user agent usually identifies the host app. That is useful for measurement, because it tells you how many of your clicks landed in an embedded browser, where closing before load is easy.

A short link forwards the visitor to a web URL. It does not open a native app and it does not detect whether the app is installed. If you need that behavior, you need universal links or app links configured on your own domain, or a dedicated deep-link provider. Then put the tracking parameters on the deep link or on its web fallback according to that provider's instructions.

## Step-by-step setup

1. **Pick one destination per offer.** One clean landing URL, without tracking parameters.
2. **Create a short link for it** and use that short link as the ad's website URL. Now there is a single place to change the destination later and a click count that is independent of your page load.
3. **Fill the platform's URL parameters field** with your UTM source, medium and the macros from the table above. Leave the destination URL itself untagged.
4. **Test one real click.** Preview the ad, tap it on a phone, and read the final URL in the address bar or in analytics real-time. Confirm that the UTMs are filled with real names, not literal macro text, and that the click ID is present.
5. **Check the tags** with the [UTM checker](https://s.fulinlabs.com/tools/utm-checker) before spending budget.
6. **Compare three numbers** for the same dates: ad-platform clicks, short-link clicks, analytics sessions. Record the ratios. A sudden change in a ratio is a signal; the absolute gap is not.
7. **Exclude your own tests** from the comparison.

## Common mistakes

- **Case inconsistency.** `Paid-Social` and `paid-social` are two mediums in your reports.
- **Double-tagging.** UTMs in the destination and different UTMs added by the platform. Decide which set wins, and only tag once.
- **Lost parameters.** A redirect, a page rule or a consent script that strips the query string before analytics reads it.
- **Literal macros.** Pasting `{{campaign.name}}` into a field that the platform does not substitute, so the report fills with the macro text.
- **Wrong slot.** Putting parameters in the URL parameters field and also appending them to the URL, so they appear twice.
- **Tagging internal links.** UTMs on links between your own pages overwrite the original source.
- **Trusting one number.** Treating the ad dashboard click count as visits, or the session count as total interest.
- **Assuming a deep link.** Expecting a web redirect to open a native app.

## Doing this with ShortLink

ShortLink's [ad link builder](https://s.fulinlabs.com/tools/ad-link-builder) builds the tracking parameters with Meta, TikTok and Google Ads macro presets, so you copy the string into the platform's URL parameters field. The [UTM checker](https://s.fulinlabs.com/tools/utm-checker) catches missing or inconsistent tags.

On redirect, ShortLink forwards ad click IDs (such as `fbclid`, `gclid`, `ttclid` and `msclkid`) and UTM parameters from the short link to the destination when the destination does not already have them. It filters bots and link previews from click counts, and reports clicks opened inside the Instagram, TikTok, Facebook and YouTube in-app browsers.

What it does not do: it does not route to a native app. There is no URI-scheme or universal-link handling, so it is a web redirect with measurement, not a deep-link service. And it counts clicks, not conversions; your own analytics still has to close that loop. ShortLink's web interface for creating and managing links requires an approved account, as described on the [product page](/projects/shortlink/).

For the click-measurement basics, see [how to track link clicks for free](/blog/how-to-track-link-clicks-free-2026/) and the [short-link analytics setup guide](/blog/short-links-analytics-folders-setup-2026/).

## FAQ

### Why do my ad clicks not match my website sessions?

They count different events. The ad platform counts a click on the ad. Your analytics counts a page that finished loading and ran its script. Between the two, a visitor can close the in-app browser, lose signal, hit a slow page, or be a link-preview bot that never renders JavaScript. A gap between the two numbers is normal; what matters is whether it stays roughly stable and whether the campaign, ad set and ad are still identifiable on the sessions that do arrive.

### Do I need UTM parameters if the ad platform already tracks clicks?

Yes, if you want the click to be attributed inside your own analytics and not only in the ad dashboard. Click IDs such as fbclid, gclid and ttclid let the platform match a visit to an ad. UTM parameters tell your analytics which campaign, ad set and creative to file the visit under. Dynamic macros fill those values in automatically, so you do not tag every ad by hand.

### What is the difference between a deep link and a short link?

A deep link opens a specific screen inside a native app, using a URI scheme or a universal link or app link. A short link is a web redirect that sends the visitor to a normal URL. A short link can sit in front of a web destination and keep the click IDs and UTMs intact, but it does not on its own decide whether to open an app. If you need app routing, you need a deep-link service or your own universal-link setup.

### Can a link shortener break ad attribution?

It can if the redirect drops the query string, rewrites the destination parameters, or adds a slow extra hop. A redirect that forwards the click IDs and UTMs to the destination when the destination does not already have them leaves attribution intact. Test one real click end to end and compare the landing URL with what you intended.

### Should I use the platform's URL parameters field or put UTMs in the ad URL?

Use the URL parameters field where the platform offers one, with macros for campaign, ad set and ad, and keep the destination URL itself clean. That way the destination (or short link) stays constant and the tracking tail is applied consistently across every ad in the campaign.
