Skip to content

Commit

Permalink
Removed ModelEventsAnalytics
Browse files Browse the repository at this point in the history
refs https://linear.app/tryghost/issue/BIZ-6/[wip]-update-segment-events

- With the removal of the `integration.added` event, we have no more model events remaining to listen to for our analytics
- Removal of the function entirely seems the easier and more straightforward way
  • Loading branch information
aileen committed Jan 18, 2024
1 parent e4b9305 commit 7587415
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 237 deletions.
93 changes: 0 additions & 93 deletions ghost/core/core/server/services/segment/ModelEventsAnalytics.js

This file was deleted.

14 changes: 0 additions & 14 deletions ghost/core/core/server/services/segment/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ const config = require('../../../shared/config');
const sentry = require('../../../shared/sentry');
const logging = require('@tryghost/logging');
const DomainEvents = require('@tryghost/domain-events');
const events = require('../../lib/common/events');

const ModelEventsAnalytics = require('./ModelEventsAnalytics');
const DomainEventsAnalytics = require('./DomainEventsAnalytics');

module.exports.init = function () {
Expand All @@ -22,18 +20,6 @@ module.exports.init = function () {
logging
});

const modelEventsAnalytics = new ModelEventsAnalytics({
analytics,
trackDefaults,
prefix,
exceptionHandler: sentry,
events,
logging
});

// Listen to model events
modelEventsAnalytics.subscribeToEvents();

// Listen to domain events
subscribeToDomainEvents.subscribeToEvents();
};

This file was deleted.

0 comments on commit 7587415

Please sign in to comment.