This issue is automatically created based on existing pull request: magento/magento2#40656: fix(pagecache): expand Varnish tracking parameter strip list
Description
Expand the marketing/tracking query string parameter strip list in vcl_recv to cover additional platforms and tools commonly used with Magento stores. These parameters are irrelevant to page content and cause cache fragmentation, reducing cache hit ratio.
Parameter Reference
Google
| Parameter |
Purpose |
utm_* |
Campaign tracking (source, medium, campaign, term, content) |
gclid |
Google Ads click identifier |
gclsrc |
Google Ads click source type (e.g. aw.ds for Search Ads 360) |
gad_source |
Google Ads source identifier (added 2024) |
gbraid |
Google Ads iOS click identifier (privacy-safe) |
wbraid |
Google Ads web-to-app attribution identifier |
dclid |
DoubleClick (Google Marketing Platform) click identifier |
srsltid |
Google Shopping / Merchant Center result identifier |
_ga |
NEW — Google Analytics cross-domain linker parameter |
_gl |
Google Analytics / Google Ads cross-domain linker |
gdf* |
NEW — Google Dynamic Feed parameters |
cx |
Google Custom Search Engine identifier |
ie |
Google Search character encoding parameter |
cof |
Google Search result formatting parameter |
siteurl |
Google Search site URL parameter |
Meta (Facebook / Instagram)
| Parameter |
Purpose |
fbclid |
Facebook click identifier (appended to all outbound links) |
igshid |
NEW — Instagram share identifier |
Microsoft
| Parameter |
Purpose |
msclkid |
Microsoft Advertising (Bing Ads) click identifier |
Adobe
| Parameter |
Purpose |
ef_id |
NEW — Adobe Advertising (formerly Adobe Media Optimizer) click ID |
s_kwcid |
NEW — Adobe Analytics Search keyword campaign ID (AMO ID) |
sc_cid (as ScCid) |
NEW — Adobe Campaign tracking identifier |
Matomo / Piwik (open-source analytics)
| Parameter |
Purpose |
mtm_* / matomo_* |
NEW — Matomo campaign tracking parameters (source, medium, keyword, etc.) |
pk_* / piwik_* |
NEW — Piwik (legacy Matomo) campaign tracking parameters |
HubSpot
| Parameter |
Purpose |
hsa_* |
NEW — HubSpot Ads tracking parameters (source, campaign, ad group, etc.) |
Klaviyo
| Parameter |
Purpose |
_ke |
NEW — Klaviyo email click tracking identifier |
_kx |
Klaviyo email link tracking hash |
Affiliate / Partner Networks
| Parameter |
Purpose |
zanpid |
Zanox (Awin) affiliate click identifier |
tduid |
NEW — Tradedoubler affiliate tracking unique ID |
campid |
NEW — eBay Partner Network campaign identifier |
customid |
NEW — eBay Partner Network custom tracking ID |
Bronto / Oracle Marketing
| Parameter |
Purpose |
_bta_* |
Bronto (Oracle Marketing) click tracking parameters |
Mailchimp
| Parameter |
Purpose |
mc_* |
Mailchimp campaign tracking parameters (cid, eid) |
Branch.io (deep linking)
| Parameter |
Purpose |
_branch_match_id |
NEW — Branch.io deep link matching identifier |
Pinterest
| Parameter |
Purpose |
epik |
NEW — Pinterest conversion tracking tag identifier |
Dotdigital
| Parameter |
Purpose |
dm_i |
NEW — Dotdigital (formerly dotmailer) email tracking identifier |
Amazon Ads
| Parameter |
Purpose |
mk*** (3-char suffix) |
NEW — Amazon Marketing tag (e.g. mkt, mkrid) |
Ceneo (Polish price comparison)
| Parameter |
Purpose |
ceneo_cid |
NEW — Ceneo click identifier, common for PL e-commerce |
Strossle / SNRAI (native advertising)
| Parameter |
Purpose |
snrai_* |
NEW — Strossle / SNRAI native ad campaign tracking |
Generic / Multi-platform
| Parameter |
Purpose |
origin |
General referral origin marker |
ref |
NEW — Generic referral source identifier |
clickId |
NEW — Generic affiliate/ad click identifier (used by multiple networks) |
pcrid |
NEW — Paid creative ID (used across multiple ad platforms) |
trk_* |
NEW — Generic tracking parameters (various marketing tools) |
cm, cn, cs, si, tg |
NEW — Short-form campaign tracking parameters (various tools) |
sb_referer_host |
NEW — SmartBanner referrer host parameter |
redirect_mongo_id, redirect_log_mongo_id |
NEW — Internal redirect tracking identifiers |
Files Changed
app/code/Magento/PageCache/etc/varnish4.vcl
app/code/Magento/PageCache/etc/varnish5.vcl
app/code/Magento/PageCache/etc/varnish6.vcl
app/code/Magento/PageCache/etc/varnish7.vcl
⭐ Support my work
Do you like the fix? Remember to react with "" to get it merged faster,
Then Sponsor me on Github so I can spend more time on fixing issues like this one.
Learn more at https://github.com/sponsors/lbajsarowicz