add more features to PageView

This commit is contained in:
David Tai
2017-08-08 12:56:19 -05:00
parent fceb797c38
commit c3c2fcf207
+5 -2
View File
@@ -151,9 +151,10 @@ if window?
lastPageId: record.lastPageId
lastPageViewId: record.lastPageViewId
url: window.location.href
referrerUrl: document.referrer
protocol: document.location.protocol
domain: document.domain
referrer: document.referrer
queryParams: getQueryParams()
uaString: ua
ua: userAgent ua
HanzoAnalytics = (name, data)->
@@ -232,6 +233,8 @@ if window?
# prevent blocking page load
setTimeout ()->
updatePage()
flush()
next()
, 1