mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 14:47:14 +01:00
add tag migrations and update send / saveEvent
This commit is contained in:
parent
6ce9a8cef4
commit
bffb98cd51
7 changed files with 102 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ export default async (req: NextApiRequestCollect, res: NextApiResponse) => {
|
|||
}
|
||||
|
||||
const { type, payload } = req.body;
|
||||
const { url, referrer, name: eventName, data, title } = payload;
|
||||
const { url, referrer, name: eventName, data, title, tag } = payload;
|
||||
const pageTitle = safeDecodeURI(title);
|
||||
|
||||
await useSession(req, res);
|
||||
|
|
@ -143,6 +143,7 @@ export default async (req: NextApiRequestCollect, res: NextApiResponse) => {
|
|||
eventData: data,
|
||||
...session,
|
||||
sessionId: session.id,
|
||||
tag,
|
||||
});
|
||||
} else if (type === COLLECTION_TYPE.identify) {
|
||||
if (!data) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue