setIgnoreClasses
The setIgnoreClasses() method sets a list of CSS classes that should be ignored when tracking downloads and outlinks. Downloads are clicks on links to downloadable files. Outlinks are clicks on links to external websites (different domain).
Syntax
setIgnoreClasses(classes)
setIgnoreClasses(classes): void
setIgnoreClasses(classes): void
setIgnoreClasses(classes): void
setIgnoreClasses(classes): void
setIgnoreClasses(classes): void
setIgnoreClasses(classes): void
Parameters
classes (string | array, required)
The name of the CSS class to be ignored when tracking downloads and outlinks. Or an array of class names.
Examples
To ignore downloads and outlinks tagged with the do-not-track and ignore-link CSS classes:
_paq.push(\["setIgnoreClasses", ["do-not-track", "ignore-link"]]);
setIgnoreClasses("do-not-track", "ignore-link"): void
setIgnoreClasses("do-not-track", "ignore-link"): void
setIgnoreClasses("do-not-track", "ignore-link"): void
setIgnoreClasses("do-not-track", "ignore-link"): void
setIgnoreClasses("do-not-track", "ignore-link"): void
setIgnoreClasses("do-not-track", "ignore-link"): void
Notes
- Elements tagged with the piwik-ignore and piwik_ignore classes are always ignored.
Related methods
Updated 6 days ago