From bbc21306f942060479ebb652b0ff8174ee8b9183 Mon Sep 17 00:00:00 2001 From: Bruce Bolt Date: Mon, 16 Jul 2018 09:46:31 +0000 Subject: [PATCH] Correct the capitalisation of trackPageview --- docs/analytics.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/analytics.md b/docs/analytics.md index b820ff60..361b46ac 100644 --- a/docs/analytics.md +++ b/docs/analytics.md @@ -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