Click tracker for Google Ads: track clicks, keywords and affiliate sales

November 21, 2026 · Hoplytic team · 2 min read

The short version: this guide in 59 seconds.
Read the video transcript

How do you track Google Ads clicks, and see affiliate sales in Google? A click tracker connects the two.

The sale happens on the merchant's side. Your tracker records each click, then tells Google which ones earned.

Keep auto-tagging on, then add campaign, ad group, keyword and device values to your tracking template.

In the tracking template, the tracker logs each click, with the campaign and keyword Google fills in, then forwards to your final URL.

The tracker stores the gclid with every click. The visitor buys, and the network reports it with your click ID. The sale joins an offline conversion feed Google fetches, so bidding optimises for sales.

Choose Google Ads in the link maker: the gclid is stored and ad values added. Under Send back, add Google Ads to get a private feed address for scheduled uploads.

The full guide is right below. Hoplytic: ad tracking made simple.

Google Ads knows who clicked your ad. It doesn't know who bought, because for affiliates the sale happens on the network's merchant. A click tracker connects the two: it records each Google click with its keyword and campaign, and later tells Google which ones earned.

Short answer: keep auto-tagging on (Google adds gclid), add ValueTrack parameters such as {campaignid}, {adgroupid}, {keyword} and {device} to your tracking template, and route clicks through a tracker that stores them. When a sale comes in, send it back to Google Ads as an offline conversion with the gclid, so bidding optimises for sales instead of clicks.

The ValueTrack parameters worth adding

ParameterWhat you learn
gclidGoogle's click ID, added automatically with auto-tagging. Needed to send conversions back.
{campaignid}Which campaign
{adgroupid}Which ad group
{keyword}The keyword that matched
{device}Mobile, tablet or computer
{matchtype}, {network}, {placement}Match type, Search vs Display, and the Display placement

The full list is in our Google Ads macros reference.

Where the tracker goes

Sending sales back to Google Ads

  1. The tracker stores the gclid with every click.
  2. The visitor buys; the network reports the sale to your tracker with your click ID.
  3. The tracker adds the sale to an offline-conversion feed with the gclid, time and value.
  4. Google Ads fetches the feed on a schedule (Goals → Conversions → Uploads → Schedules) and attributes the conversion to the keyword and ad.

Details in Google Ads offline conversion import.

On Hoplytic

Choose Google Ads in the link maker: gclid is stored automatically and the campaign, ad group, keyword and device values are added for you. With the site script on your landing page, ad values carry from the landing page to the affiliate click. Under Send back, add Google Ads to get a private feed address for scheduled uploads; sales from Google clicks go into it within about 20 seconds of the network reporting them. Reports group by campaign → keyword → device with sales, commission and earnings per click.

Pick the ad platform and its macros are added to your tracking link.

Questions people ask

How do I use a click tracker with Google Ads?

Put the tracker in the ad's tracking template or final URL suffix, with ValueTrack parameters like {campaignid}, {adgroupid} and {keyword}. Google adds the gclid automatically when auto-tagging is on. The tracker logs each click and passes it on to the landing page.

Does Google Ads allow tracking redirects?

Yes, through tracking templates, as long as the visitor ends up on the page your final URL shows. The final URL's domain must match the ad's display domain; redirecting to a different site is against Google's policies.

How do I see affiliate sales in Google Ads?

Store the gclid with each click, and when the network reports a sale, upload it to Google Ads as an offline conversion, either by file or a scheduled feed from your tracker. Smart bidding can then optimise for sales.

More in Traffic sources and macros

Also: tracking glossary · ad platform macros · Markdown copy