0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Fixed entry url for view events

refs https://github.com/TryGhost/Team/issues/1062
This commit is contained in:
Rishabh 2021-09-21 17:27:37 +05:30
parent 25cb7dfd4d
commit 7e7cfb5227

View file

@ -5,7 +5,7 @@ function sendEntryViewEvent({analyticsId, api}) {
api.analytics.pushEvent({
type: 'entry_view',
entry_id: analyticsId,
source_url: window.location.href,
entry_url: window.location.href,
created_at: new Date()
});
}