diff --git a/README.md b/README.md index 292aaa58..ac0d67ed 100644 --- a/README.md +++ b/README.md @@ -125,6 +125,8 @@ In production: * [Virtual pageviews](/docs/analytics.md#virtual-pageviews) * [Custom events](/docs/analytics.md#custom-events) * [Custom dimensions and custom variables](/docs/analytics.md#custom-dimensions-and-custom-variables) + * [Print tracking](/docs/analytics.md#print-tracking) + * [Error tracking](/docs/analytics.md#error-tracking) ## Licence diff --git a/docs/analytics.md b/docs/analytics.md index c1e88908..09a28828 100644 --- a/docs/analytics.md +++ b/docs/analytics.md @@ -148,3 +148,11 @@ function setPixelDensityDimension(pixelDensity) { GOVUK.analytics.setDimension(1, pixelDensity, 'PixelDensity', 2); } ``` + +## Print tracking + +Pull `print-intent.js` into your project, after analytics has been initialised, to track when users are attempting to print content. + +## Error tracking + +Pull `error-tracking.js` into your project, after analytics has been initialised, to track JavaScript errors.