加入统计服务

This commit is contained in:
xyf-mac
2021-11-14 18:05:55 +08:00
parent 03fe18e342
commit 85099a9664
2 changed files with 9 additions and 0 deletions

View File

@@ -1,5 +1,13 @@
import {Msg, Page, PluginEvent} from "@/core/types";
// @ts-ignore
import * as UA from "universal-analytics"
import {v4} from "uuid"
// 统计服务
const userID = localStorage.getItem("userID") || v4()
UA("UA-134924925-3", userID);
console.log("on background")
class PortMan {