All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- BREAKING: No longer bundling vendor
analytics.min.jswith our package. You must now create your ownanalytics.min.jsfile. Please refer to README for instructions on how to build your own analytics integration bundle. - BREAKING: Default function is no longer exported. Replaced with
initAnalytics(). You must import as follows:import { initAnalytics } from '@okgrow/auto-analytics'. initAnalytics()now expects a single object param which containsanalytics.js, segment'sintegrations&options, andautorun. e.g -initAnalytics({ analytics, integrations, options, autorun }). Please refer to README for more details.- Example updated with only the
Google AnalyticsandMixpanelintegrations bundled inanalytics.min.js. - Rollup.js is now used for bundling the auto-analytics package instead of a custom babel script.
.babelrcnow has abuild&testconfig..npmignorehas been removed andfiles: ['dist']has been added topackage.jsoninstead.
- Ensure that any existing state is copied across when we use
replaceState()inlogFirstPageLoad(). More details -> PR #19
- Handle missing state when setting referrer. More details -> #16
- Update
analytics.min.jsto latest released version
- Don't include Fragment Identifier (e.g -
#foo) in ourdocument.referrer. Fixes #14
- Referrer will now correctly reference the original referrer when browsers back/fwd buttons are used.
- Title & Name will will not be from the previous route when packages like react-helmet, or react-document-title, etc... are used to set the
document.title.
babel-runtimehas been removed from build process.
- Publishing package on npm as
@okgrow/auto-analytics.
- Package is no longer published to npm as
okgrow-auto-analytics.
- Pass the correct params to
logPageLoad()
- Initial Release - released as
okgrow-auto-analyticson npm. - Extracted the non Meteor specific .js code from our Meteor-specific package.