- Added
trackPageDelay
option that allows specifying the amount of time to wait before callingtrackPage
. Thanks to @sreucherand!
- Added
addSourceMiddleware
,addIntegrationMiddleware
,setAnonymousId
, andaddDestinationMiddleware
methods to Segment snippet
- Adds
manualLoad
plugin option to allow users to manually load Segment snippet, e.g. waiting for a user to opt into being tracked for GDPR
- Send
document.title
with page tracking events for enhanced event data
- Adds a 50ms delay to page tracking calls to prevent erroneously sending duplicate page events
- Delete package-lock.json
- Bug: Built files not uploaded to npm
- Updated README.md
- NEW FEATURE: we've added one new feature with two options:
delayLoad
and its frienddelayLoadTime
. When the former is set to true, we will delay loading SegmentdelayLoadTime
seconds after either a route change or user page scroll, whichever comes first. This functionality was built to help with SEO, UX, etc by preventing Segment from increasing your TTI.
-
BREAKING CHANGE: you must now explicitly pass
trackPage: true
in yourgatsby-config.js
file if you want us to automatically track pageviews -
BREAKING CHANGE: previously we would only fire
analytics.page()
on the initial page load. But now we will invoke it on each route transition. See README for more details. -
Added example dir
-
Expanded README.md and adds CHANGELOG.md
- Bumps Segment snippet from 4.0.0 to 4.1.0
- Basic version working