← Back to Blog

What Is gad_campaignid? The Google Ads URL Parameter, What It Is For, and How to Keep It From Getting Lost

Ihor Odariuk
· updated · 6 min read
Quick answer

gad_campaignid is a URL parameter Google Ads adds to every ad click, holding the ID of the campaign that drove the click. Google uses it to credit conversions to the right campaign, especially when there is no GCLID. Leave it in place, and make sure redirects, forms and offline imports keep it.

Contents · 8 sections

gad_campaignid is a URL parameter that Google Ads adds to the landing page address after someone clicks an ad. It holds the ID of the campaign that drove the click. Google's help page, About gad_* URL parameters, defines it as "a URL parameter used to identify the Google campaign that drove the conversion," and adds that "any URL coming from a Google ad now has &gad_campaignid in its final URL. All conversions from the same campaign will have the same gad_campaignid."

If you saw it in your analytics, in a form submission or in a server log and wondered whether something was broken, you can relax: it is Google's parameter, it is supposed to be there, and removing it can cost you conversion data.

What does a URL with gad_campaignid look like?

Google appends the gad_* parameters to the end of the final URL, after your own parameters and before any # fragment. Google's example uses gad_source, and gad_campaignid follows the same rule:

example.com/foo?a=b&gad_source=1#xyz

A real ad click will often carry several parameters at once, such as gad_source, gad_campaignid and the gclid click ID. They do different jobs.

gad_campaignid, gad_source and gclid: what each one does

Parameter What it identifies Unique to one click? Source
gad_campaignid The Google Ads campaign that drove the click No, the same for every click in that campaign About gad_* parameters
gad_source The source of the ad traffic, such as Google Search or the Display Network No, the same for all advertisers with the same source; not customizable About gad_* parameters
gclid One specific ad click Yes Google Ads auto-tagging

Google describes the gad_* parameters as providing "aggregate data about your campaigns," insights "without compromising user privacy." That is the key difference: the GCLID points to one click, while gad_campaignid only says which campaign it came from. Google also notes that gad_source used to be called gad.

Why does Google add it?

Google uses conversion metadata to measure conversions it cannot measure the traditional way, and the gad_* parameters feed that. For gad_source the help page says it is used "to identify the source of ads URLs ... and improve the accuracy of ads conversion measurement."

For a site with the Google tag, nothing has to be done: "For advertisers using a Google tag on their website, these gad_* parameters are automatically captured with conversion events." The tag reads them from the landing page URL.

Why gad_campaignid matters for offline conversion imports

If you upload conversions from a CRM, for example booked or completed jobs, the Google tag is not the one sending them, so nothing captures the parameters for you. Google's instruction for that case:

"When using offline conversion import methods, it is necessary to capture these parameters from all landing pages, attribute them to your conversions, and import them to Google Ads. This is particularly important when individual identifiers like gclid and user-provided data are not available."

In practice that means storing gad_campaignid and gad_source next to the GCLID when the lead arrives, in the same hidden form fields and the same CRM fields. Google's reasoning is that with gad_* parameters it can "attribute conversions to the correct campaigns, even without individual click identifiers." A lead whose GCLID was lost, which happens more often than people expect, can still be credited to the right campaign.

The hidden-field setup, the CRM fields and the newer session attributes Google asks for are covered step by step in how to capture the GCLID for offline conversions, and which value to send with each job is in what value to send with offline conversions.

Where gad_campaignid gets lost

Redirects

Google's help page is explicit: "If your website contains redirects, it's important that you keep the gad_* URL parameter in your redirect. Google Ads and Google Analytics tags expect to observe the gad_* parameter as top-level parameter on the page where tags are loaded."

Redirects that drop query strings are common on service business sites: an old landing page redirected to a new one, http to https, a trailing-slash rule, or a city page that sends visitors to a booking tool. Each one can strip the parameters before the tag ever sees them.

Sites that reject unknown parameters

"A small percentage of websites don't allow arbitrary URL parameters and serve an error page with these parameters." That is worse than losing the data: the paid click lands on an error.

Forms and CRMs that only store the GCLID

A form that captures gclid but not the gad_* parameters works until the GCLID is missing, and then the conversion has nothing to fall back on. Capturing all of them costs two more hidden fields.

How to test that the parameter survives

Google gives a manual test, written for gad_source and equally useful for gad_campaignid (About gad_* parameters):

  1. In Google Ads, open Campaigns, then Insights and reports, then Landing pages.
  2. Copy a landing page URL and paste it into the browser.
  3. Add the parameter by hand: ?gad_source=1 if the URL has no ? yet, or &gad_source=1 if it already has parameters.
  4. Load the page. The parameter must still be in the address bar and the page must load normally.

Google notes the parameter "is case-sensitive and should appear the same across all pages on your site." For an offline import setup, take the test one step further: submit a test form from that URL and check that the value arrived in the CRM field.

Is "sitewide tagging" the same thing?

No, but the two are related. Sitewide tagging is Google's term for having the Google tag (or Google Tag Manager) on every page of the site, so it can set first-party cookies on your domain. Google's troubleshooting page for sitewide tagging explains why: with auto-tagging on, those first-party cookies "will be able to store the GCLID (Google click identifier) and AUID (Advertiser user ID) parameter after a click happens," and when the tags fire on the conversion page, they use the stored values "to properly measure conversions."

The gad_* parameters are read on the landing page; the sitewide tag is what carries the click information from the landing page to the conversion page a few clicks later. If the tag is only on the thank-you page, the landing page parameters are never read. Google's checklist on the same page includes:

  • Auto-tagging enabled in Google Ads
  • The Google tag firing on every page, including the mobile site
  • The conversion linker enabled if you use Google Tag Manager
  • No legacy or duplicate tags on conversion pages
  • Redirects that do not strip the GCLID
  • Conversion tracking not fired from inside an iframe

The full walk through auto-tagging and the GCLID is in Google Ads auto-tagging.

Should you remove gad_campaignid from your URLs?

Not from the landing page itself. The tags need to read it there. What is reasonable is keeping it out of your canonical URLs and internal links, which a correctly set canonical tag already does, and filtering it out of reports where it splits one page into many rows.

If your Google Ads conversions and your CRM do not agree on which campaign brought the jobs, a lost parameter on a redirect or a form that drops it is one of the first things to check. How I set up conversion tracking that survives those steps is on Google Ads conversion tracking, and the free written diagnostic checks your landing pages and forms for exactly this, with no call required.

Related:

The package for this
Google Ads conversion tracking setupfrom $399

One clean Google Tag Manager container, GA4 key events for form fills and phone clicks, Google Ads conversions where only real leads drive bidding, and calls tracked by channel.