A strip query params rule selects a subset of resources and strips some params of it.
See SpeedKitConfig.stripQueryParams | the strip query params option for more information.
The sites on which this strip query params rule is enabled.
Example
[{ "pathname": "/product/details/" }]
Explanation
In this example, Speed Kit will strip query params given by the params
property from all resources requested from a product details page under the path
of "/product/details/". All other resources will not be affected by this rule.
Since
1.17.0
params
params:Condition
The params to be stripped from the selected resources.
Example
['analytics','gclid']
Explanation
Speed Kit will remove “analytics” and “gclid” query parameters before
issuing and caching the request.
Since
1.17.0
Optionalrules
rules?:SpeedKitRule[]
The rules to match only some resources.
Example
[{ url: 'www.googletagmanager.com/gtm.js' }]
Explanation
In this example, Speed Kit will strip query params given by the params
property of the Google Tag Manager request. All other resources
will not be affected by this rule.
A strip query params rule selects a subset of resources and strips some params of it. See SpeedKitConfig.stripQueryParams | the strip query params option for more information.
Since
1.17.0