- BREAKING CHANGE: The
options
now support more complex things, and some thing are renamed. Please check out all of the options in theREADME
.
- Ensure that cb is a function before calling it. #57
- Fix syntax error in delayed loader code. #56
- Better idempotency. #54
- Add
includeTitleInPageCall
option, and set it totrue
by default. Strictly speaking, this was a "breaking change", hence the new major version. - Fix bug where
analytics.page()
would be called twice.
- Updated
gatsby
peer dependency to support^2 || ^3 || ^4 || ^5
#52
- Updated
gatsby
peer dependency to support^2 || ^3 || ^4
#43
-
Updated default snippet to
4.13.2
-
Added
customSnippet
option to allow for providing arbitrary snippet code -
Decreased NPM package size
-
Some small optimizations
-
Added linting for developers
-
Added correct peer dependencies(thanks @LekoArts) and updated readme to show correct usage of analytics.load(thanks @seankovacs)
- Added correct peer dependencies(thanks @LekoArts) and updated readme to show correct usage of analytics.load(thanks @seankovacs)
- 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