API Reference / Crawler Configuration API / ignoreQueryParams

ignoreQueryParams

Type: Array of Strings
Parameter syntax
ignoreQueryParams: [
  'param',
  'param2',
  ...
]

About this parameter

Filters out specified query parameters from crawled URLs. This can help you avoid indexing duplicate URLs.

Examples

In this example, the ref and _utm parameters are ignored in crawled URLs. Your crawler saves http://localhost?page=1&ref=algolia as http://localhost?page=1.

1
2
3
{
  ignoreQueryParams: ['ref', '_utm'],
}

Did you find this page helpful?