mirror of
https://github.com/umami-software/umami.git
synced 2025-12-08 05:12:36 +01:00
Send page view after session create.
This commit is contained in:
parent
d8c8df2955
commit
1ca72cbd9c
2 changed files with 5 additions and 2 deletions
|
|
@ -62,7 +62,10 @@ if (script) {
|
|||
if (!store.getItem(sessionKey)) {
|
||||
createSession(data).then(success => success && pageView(url, referrer));
|
||||
} else {
|
||||
pageView(url, referrer).then(success => !success && createSession(data));
|
||||
pageView(url, referrer).then(
|
||||
success =>
|
||||
!success && createSession(data).then(success => success && pageView(url, referrer)),
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue