UNPKG

wm-gatsby-plugin-segment-js

Version:
22 lines (11 loc) 866 B
## 3.1.0 - NEW FEATURE: we've added one new feature with two options: `delayLoad` and its friend `delayLoadTime`. When the former is set to true, we will delay loading Segment `delayLoadTime` 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. ## 3.0.0 - BREAKING CHANGE: you must now explicitly pass `trackPage: true` in your `gatsby-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 ## 2.1.2 - Bumps Segment snippet from 4.0.0 to 4.1.0 ## 2.0.0 - Basic version working