mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Add an analytics event when links are removed
This commit is contained in:
parent
48c25a05a2
commit
eee116e71d
1 changed files with 9 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue