Merge pull request #601 from omnivore-app/fix/link-removed-event

Add an analytics event when links are removed
This commit is contained in:
Jackson Harper
2022-05-12 12:12:05 -07:00
committed by GitHub

View File

@ -632,6 +632,15 @@ export const setBookmarkArticleResolver = authorized<
return models.highlight.unshareAllHighlights(articleID, uid, tx)
})
analytics.track({
userId: uid,
event: 'link_removed',
properties: {
url: pageRemoved.url,
env: env.server.apiEnv,
},
})
log.info('Article unbookmarked', {
page: Object.assign({}, page, {
content: undefined,