Skip to content

Commit

Permalink
Correct the capitalisation of trackPageview
Browse files Browse the repository at this point in the history
  • Loading branch information
brucebolt committed Jul 16, 2018
1 parent f2039d0 commit bbc2130
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 bbc2130

Please sign in to comment.