Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V4 #206

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

V4 #206

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ OK GROW! analytics uses a combination of the browser [History API](https://devel
## Table of Contents

- [Background](#background)
- [Analytics 3.0+](#analytics-30)
- [Analytics 2.1.0+](#analytics-210)
- [Pre Meteor 1.3.1](#pre-meteor-131)
- [Analytics 4.0+](#analytics-40)
- [Analytics 3.0+](#analytics-30)
- [Analytics 2.1.0+](#analytics-210)
- [Pre Meteor 1.3.1](#pre-meteor-131)
- [Install](#install)
- [Usage](#usage)
- [Currently Supported Analytic Services](#currently-supported-analytic-services)
Expand All @@ -34,8 +35,10 @@ OK GROW! analytics uses a combination of the browser [History API](https://devel

## Background

### Analytics 3.0+
### Analytics 4.0+
In version 4.X of _this_ package, we are now dependent on version 2.0.0 of our [`@okgrow/auto-analytics`](https://www.npmjs.com/package/@okgrow/auto-analytics) NPM package. **That package no longer embeds the Segment `analytics.js`.** You must now install [Segment's `analytics.js`](https://www.npmjs.com/package/analytics.js) manually (`npm install --save analytics.js`) or create your own custom `analytics.js` module with only the integrations you need.

### Analytics 3.0+
In version 3.X of _this_ package, the automatic page view tracking is handled by our new _router-agnostic_ [`@okgrow/auto-analytics`](https://www.npmjs.com/package/@okgrow/auto-analytics) NPM package, which can be used by _any_ JavaScript application whether using Meteor or not. _This_ package adds automatic user identification by using hooks in the Meteor accounts package and building on Segment.io's `analytics` package _through_ the `@okgrow/auto-analytics` package.

### Analytics 2.1.0+
Expand Down Expand Up @@ -263,5 +266,3 @@ Please note that all interactions in @okgrow's repos should follow our [Code of

## License
Released under the [MIT license](https://github.com/okgrow/analytics/blob/master/License.md) © 2015-2017 OK GROW!.


2 changes: 1 addition & 1 deletion examples/flow-router/.meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ [email protected]
[email protected]
[email protected]
[email protected]
okgrow:analytics@3.0.5
okgrow:analytics@4.0.0
[email protected]
[email protected]
[email protected]
Expand Down
3 changes: 2 additions & 1 deletion examples/flow-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
"dependencies": {
"babel-runtime": "6.18.0",
"meteor-node-stubs": "~0.2.0"
"meteor-node-stubs": "~0.2.0",
"analytics.js": "^2.9.1"
}
}
2 changes: 1 addition & 1 deletion examples/iron-router/.meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ [email protected]
[email protected]
[email protected]
[email protected]
okgrow:analytics@3.0.5
okgrow:analytics@4.0.0
[email protected]
[email protected]
[email protected]
Expand Down
3 changes: 2 additions & 1 deletion examples/iron-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
"dependencies": {
"babel-runtime": "6.18.0",
"meteor-node-stubs": "~0.2.0"
"meteor-node-stubs": "~0.2.0",
"analytics.js": "^2.9.1"
}
}
2 changes: 1 addition & 1 deletion examples/react-router/.meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ [email protected]
[email protected]
[email protected]
okgrow:[email protected]
okgrow:analytics@3.0.5
okgrow:analytics@4.0.0
[email protected]
[email protected]
[email protected]
Expand Down
3 changes: 2 additions & 1 deletion examples/react-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"react-document-title": "^2.0.2",
"react-dom": "^15.3.2",
"react-komposer": "1.13.1",
"react-router": "^3.0.0"
"react-router": "^3.0.0",
"analytics.js": "^2.9.1"
}
}
4 changes: 2 additions & 2 deletions package.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package.describe({
name: 'okgrow:analytics',
version: '3.0.5',
version: '4.0.0',
summary: 'Extends @okgrow/auto-analytics adding automatic user identification for Meteor applications.',
git: 'https://github.com/okgrow/analytics',
documentation: 'README.md',
Expand Down Expand Up @@ -29,5 +29,5 @@ Package.onUse((api) => {
});

Npm.depends({
'@okgrow/auto-analytics': '1.0.6',
'@okgrow/auto-analytics': '2.0.0',
});
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "analytics",
"version": "3.0.5",
"version": "4.0.0",
"description": "Complete Google Analytics, Mixpanel, KISSmetrics (and more) integration for Meteor",
"repository": {
"type": "git",
Expand Down Expand Up @@ -29,6 +29,6 @@
"eslint-plugin-meteor": "^4.0.1"
},
"dependencies": {
"@okgrow/auto-analytics": "1.0.6"
"@okgrow/auto-analytics": "^2.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may have to keep this locked to 2.0.0 so its more clear and we don't end up with a conflict with package-lock.json being at a higher version then the Npm.depends() in Meteors package.json file.

}
}
7 changes: 0 additions & 7 deletions vendor/analytics.min.js

This file was deleted.