mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-22 09:13:37 +01:00
Send page view after session create.
This commit is contained in:
parent
d8c8df2955
commit
1ca72cbd9c
File diff suppressed because one or more lines are too long
@ -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…
Reference in New Issue
Block a user