Every big ad platform can fill in details at the moment of the click: the keyword, the ad ID, the campaign name and more. You add a placeholder to your link, the platform swaps in the real value, and WP Conversion Tracker AI stores whatever arrives as the Sub-ID. There is no code to write and nothing to connect. You only paste the right template into the ad platform.
How It Works:
- Your tracking link accepts a Sub-ID as ?sub_id=, ?subid= or ?sid=, or as a word after the slug.
- The ad platform replaces its placeholder, such as {keyword}, with the real value.
- The click is recorded with that value as its Sub-ID.
- The link's 📊 Sub ID Breakdown then shows clicks, leads, sales, conversion rate, EPC and, with Pro Tools, cost and profit for every keyword or ad.
Google Ads:
Campaign, then Settings, then URL options, then Tracking template. Paste {lpurl}/?sub_id={keyword}. For more detail you can set it at ad group or keyword level too and join placeholders, for example {lpurl}/?sub_id={keyword}_{adgroupname}_{matchtype}.
Microsoft Advertising:
Campaign, then Settings, then URL options, then Tracking template. The placeholders match Google, so {lpurl}/?sub_id={keyword} works. Microsoft also offers {QueryString}, {Network} and {Device}.
Meta Ads For Facebook And Instagram:
In Ads Manager, at ad level, use the URL parameters field under the website URL. Paste sub_id={{ad.id}}_{{adset.id}}_{{campaign.id}}. Meta adds it to your link for you. Keep it in the URL parameters field rather than the website URL itself, because Meta uses its own double brace placeholders.
TikTok Ads:
Campaign, then Tracking, then URL Parameters. Use sub_id=__CAMPAIGN_ID__-__AID__-__CID__. TikTok wraps values in double underscores, where __AID__ is the ad ID and __CID__ is the creative ID.
YouTube Ads:
YouTube ads run through Google Ads, so use the same Tracking template field. {lpurl}/?sub_id={keyword}_{video_id} adds the video, although {video_id} only fills in on video campaigns that support it.
X Ads:
Campaign, then the URL parameters setting. Use sub_id={{twclid}}, which is X's own click ID, and add {{tweet.id}} if you want post level detail.
Native Ad Networks:
Use the network's Tracking URL field. Taboola uses {lpurl}/?sub_id={site}_{adid} and Outbrain uses {lpurl}/?sub_id={{section_id}}_{{ad_id}}.
Solo Ads:
Solo ad sellers have no placeholders. Put the seller's name in the address you give them, for example yoursite.com/solo-ads/solo-anna. One Sub-ID per seller lets you compare them on EPC and cost.
Use The Query Form For Paid Traffic:
Keywords often contain spaces and punctuation. In the path they turn into %20 or plus signs, which makes the Sub ID Breakdown harder to read. The ?sub_id= form handles them cleanly, so prefer it for every paid platform.
Join Several Placeholders For Deeper Analysis:
Join values with underscores, for example {lpurl}/?sub_id={keyword}_{adgroupname}_{matchtype}_{device}. Each click then carries one combined value. Export the clicks as CSV and split the Sub-ID column on the underscore to analyse by keyword, ad group, match type or device. See Exporting Your Data.
A Real Example On Google Ads:

- Create a link with the slug google-search and the destination https://yoursite.com/free-starter-guide/. Set Cost Per Click ($) to your average cost, for example 0.85, if Pro Tools is installed.
- In Google Ads, set the campaign tracking template to {lpurl}/?sub_id={keyword}.
- Set the Final URL to yoursite.com/google-search.
- Google fills in the keyword at click time, so every click is recorded with the real search term as its Sub-ID.
- Open the link's 📊 Stats page. The Sub ID Breakdown lists every keyword with its clicks, leads, cost and profit or loss.
- Pause the keywords that cost the most per lead and raise bids on the ones that convert.
Reading Keyword Results:
Once the clicks arrive, open the link's Stats page and look at the Sub ID Breakdown:
- Sort your attention by EPC, or by cost per lead on lead campaigns.
- Note keywords with many clicks and no conversions. They are candidates for negative keywords or lower bids.
- Note keywords with few clicks and a strong conversion rate. They are candidates for higher bids.
- Check again after a week, because one or two conversions can swing small numbers.
Tips:
- Add utm_source and utm_campaign as well if you want the Dashboard's Top Sources & Campaigns card to group your ads. See UTM Tags And Custom Parameters.
- Values that were never filled in by the platform, such as a literal {keyword}, are not stored as parameters, so a broken template does not fill your reports with placeholders.
- See Sub-ID Tracking For Traffic Sources for the basics.