Wexlyn
Back to the docs

Setup

Step 2: Add URL parameters to your ads

The exact parameter string for each ad platform and where to paste it.

Final URL on the ad

https://yoursite.com/offer?wx_source=meta&wx_campaign={{campaign.id}}&wx_adset={{adset.id}}&wx_ad={{ad.id}}

Meta

{{campaign.id}} fills in per ad

Google Ads

{campaignid} and gclid

Microsoft · LinkedIn · X

msclkid · li_fat_id · twclid

The platform swaps the placeholders for the real ids on every click, so Wexlyn knows the exact ad. Illustrative names.

Ad platforms do not tell your website which ad was clicked. These parameters do. Wexlyn reads them on the landing page and creates a source for every ad automatically, named after the ad, grouped by ad set or ad group.

Copy the string for each platform below. Tracking → All Tracking Parameters has the same list with a copy button per platform, plus the organic link builder and the email merge tags.

Account level → Settings → Account → Tracking → Final URL suffix:

gc_id={campaignid}&h_ga_id={adgroupid}&h_ad_id={creative}&h_keyword_id={targetid}&h_keyword={keyword}&h_placement={placement}

Performance Max and Smart campaigns cannot pass ad ids. On each such campaign's own final URL suffix use:

g_special_campaign=true&gc_id={campaignid}

Click Test in Google Ads after saving. A tracking template with {lpurl}? in front of the same parameters works too, but the final URL suffix survives Google's parallel tracking and needs no change per campaign.

Meta (Facebook and Instagram)

Ad level → URL parameters field (not the website URL):

fbc_id={{adset.id}}&h_ad_id={{ad.id}}&h_campaign_id={{campaign.id}}

Tip: in Ads Manager select all ads, Edit, open URL parameters, paste once, apply to all. Save a column preset that shows the URL parameters column so you can spot ads missing it.

Already using Meta's own tags? Links with utm_source=facebook (or instagram, meta, fb, ig) plus utm_campaign_id={{campaign.id}}&utm_adset_id={{adset.id}}&utm_ad_id={{ad.id}} are read as the same ad, ad set and campaign, so you do not have to change them. The same goes for utm_campaign={{campaign.id}}&utm_term={{adset.id}}&utm_content={{ad.id}} (ids only; campaign or ad names in those fields are not matched, and the synced ad tree decides which level each id is). A multi-step funnel that keeps those tags on every page but drops fbclid after the first still credits the ad.

A funnel step that opens in another browser (Instagram's in-app browser handing the booking page to Safari) gets a new visitor id there. When that page forwards Meta's _fbc click cookie, Wexlyn matches the click id inside it to the page view that landed the click, credits the same ad and joins both browsers on the one person. A Meta click that names no ad at all is kept under Meta (ad id missing) rather than lost, so the row itself tells you which ads still need the parameters.

TikTok

Ad level → Destination URL, append:

?ttc_id=__AID__&h_ad_id=__CID__&h_campaign_id=__CAMPAIGN_ID__

LinkedIn

Ad level → Destination URL, append:

?lnk_id={{CAMPAIGN_ID}}&h_ad_id={{CREATIVE_ID}}

Microsoft (Bing) Ads

Account level → Tracking template:

{lpurl}?h_campaign_id={CampaignId}&bng_id={AdGroupId}&h_ad_id={adid}

Performance Max: add &bng_special_campaign=true.

X (Twitter)

X has no dynamic parameters. Paste the ad group id and the promoted post id by hand into each ad's website URL, first, straight after the page address, with your own parameters after them:

?twt_id=YOUR_AD_GROUP_ID&h_ad_id=YOUR_PROMOTED_POST_ID

For example https://your-site.com/page?twt_id=...&h_ad_id=...&utm_source=x&utm_campaign=.... Added as a suffix after other parameters they have been seen not to arrive on X; in first position they do.

Organic sources: YouTube, podcasts, emails, partners

Anything that is not an ad is organic in Wexlyn, and organic traffic gets the same three levels as paid ads so it reads the same way in reports:

LevelPaid adsOrganicParameter
CampaignCampaignTraffic source (YouTube, Podcast, Newsletter)h_traffic_source
Ad setAd set / ad groupCategory (a playlist, a show, an email sequence)hcategory
AdAdThe piece itself (the video, the episode, the email)el

Put the parameters on the link you share:

https://mywebsite.com/?el=How-to-Price-Your-Offer&hcategory=Pricing-Series&h_traffic_source=YouTube

That visit becomes the source How-to-Price-Your-Offer, under category Pricing-Series, with traffic source YouTube, marked organic. In Reporting, the Campaign tab shows YouTube, the Ad set tab shows Pricing-Series, and the Ad tab shows each video. The Traffic source tab groups every YouTube video together, and Scientific and first-click models credit organic touches exactly like ads, without any spend.

  • el is the only required part. Without h_traffic_source the source files under "Organic"; without hcategory it has no ad set level.
  • htrafficsource, h-traffic-source and h_traffic_source are the same parameter; so are hcategory, h_category and h-category.
  • sl=Source-Name works the same way for manual, non-organic sources (a sales rep's link, a partner).
  • he={{contact.email}} on email links passes the reader's email so the visit is matched to the lead even on a new device.

Sources created this way carry a green organic mark on their @tag. Sources that come from an ad platform are never organic; everything else is, unless a URL rule says otherwise.

Check your work

Open an ad from the platform's preview and look at the landing page URL: every parameter above should be visible. Then check Tracking → Sources: a new source appears within a few minutes, named after the ad.