Skip to content

Commit

Permalink
Mention the print and error tracking options
Browse files Browse the repository at this point in the history
  • Loading branch information
fofr committed Mar 10, 2015
1 parent bff50a4 commit cca27ba
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 8 additions & 0 deletions docs/analytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit cca27ba

Please sign in to comment.