-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
8,247 additions
and
8,056 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
core/built/assets/ghost-dark-d8255df5c48d9ae3e7e1b8a87f320f47.css
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
core/built/assets/ghost-dark-d9be2934ee97e51381b45d4016794d3c.css
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
core/built/assets/ghost.min-2fe6bcb1046d8c3b263bac0d9ad0365c.css
This file was deleted.
Oops, something went wrong.
1,814 changes: 1,016 additions & 798 deletions
1,814
...t.min-ee9d445842e1f287d1215ea70e1e555f.js → ...t.min-51612a5ad8c195dce62103b7ec25169f.js
Large diffs are not rendered by default.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
core/built/assets/ghost.min-ae56f3dfbe3bab31d0f38aa7a8d8795e.css
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
....min-009927368b3fccac0109ec0e4ca32fc0.css → ....min-7b92076fbe9cfbda9fa83e85fe6b31c6.css
Large diffs are not rendered by default.
Oops, something went wrong.
13,292 changes: 6,593 additions & 6,699 deletions
13,292
...r.min-55c925924307d265f2573f87177a89c8.js → ...r.min-a6a7811b29e74ddc342a6f2d50fab7a9.js
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
var _ = require('lodash'), | ||
config = require('./config'), | ||
events = require('./events'), | ||
Analytics = require('analytics-node'), | ||
analytics; | ||
|
||
module.exports.init = function () { | ||
analytics = new Analytics(config.get('segment:key')); | ||
var toTrack, | ||
trackDefaults = config.get('segment:trackDefaults') || {}, | ||
prefix = config.get('segment:prefix') || ''; | ||
|
||
toTrack = [ | ||
{ | ||
event: 'post.added', | ||
name: 'Blog Post Created' | ||
}, | ||
{ | ||
event: 'post.published', | ||
name: 'Blog Post Published' | ||
}, | ||
{ | ||
event: 'page.published', | ||
name: 'Blog Page Published' | ||
}, | ||
{ | ||
event: 'user.added', | ||
name: 'User Invite Sent' | ||
}, | ||
{ | ||
event: 'user.activated', | ||
name: 'User Invite Activated' | ||
}, | ||
{ | ||
event: 'user.activated.edited', | ||
name: 'User Account Updated' | ||
}, | ||
{ | ||
event: 'subscriber.added', | ||
name: 'New Subscriber Added' | ||
}, | ||
{ | ||
event: 'token.added', | ||
name: 'Access Token Added' | ||
}, | ||
{ | ||
event: 'setup.completed', | ||
name: 'Created Owner Account' | ||
}, | ||
{ | ||
event: 'theme.uploaded', | ||
name: 'Uploaded Theme' | ||
}, | ||
{ | ||
event: 'theme.downloaded', | ||
name: 'Downloaded Theme' | ||
}, | ||
{ | ||
event: 'theme.deleted', | ||
name: 'Deleted Theme' | ||
} | ||
]; | ||
|
||
_.each(toTrack, function (track) { | ||
events.on(track.event, function () { | ||
analytics.track(_.extend(trackDefaults, {event: prefix + track.name})); | ||
}); | ||
}); | ||
}; |
Oops, something went wrong.