Skip to content

Commit

Permalink
Merge pull request #465 from alphagov/correct-capitalisation-in-doc
Browse files Browse the repository at this point in the history
Correct the capitalisation of trackPageview
  • Loading branch information
brucebolt authored Jul 16, 2018
2 parents f2039d0 + bbc2130 commit cf1c3fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/analytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ email address was removed, `[date]` if a date was removed, or `[postcode]`
if a postcode was removed.

We have to parse all arguments which means that if you don't pass a path to
`trackPageView` to track the current page we have to extract the current page
and parse it, turning all `trackPageView` calls into ones with a path argument.
`trackPageview` to track the current page we have to extract the current page
and parse it, turning all `trackPageview` calls into ones with a path argument.
We use `window.location.href.split('#')[0]` as the default path when one is
not provided. The original behaviour would have been to ignore the anchor
part of the URL anyway so this doesn't change the behaviour other than to make
Expand Down

0 comments on commit cf1c3fe

Please sign in to comment.