评价统计

This commit is contained in:
xu_yanfeng
2025-02-08 11:41:59 +08:00
parent 45043ffdbb
commit 5bdaf105a1
3 changed files with 6 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ import { debugLog, Page, PluginEvent } from "../../core/types";
import { getDevToolsInspectorId } from "../../core/util";
import { Terminal } from "../terminal";
import { tabMgr } from "./tabMgr";
import "./notify";
const terminal = new Terminal(Page.Background);
debugLog && console.log(...terminal.init());

View File

@@ -1,4 +1,6 @@
import PKG from "../../../cc-plugin.config";
import { ga } from "../../ga";
import { GA_EventName } from "../../ga/type";
(async () => {
interface ConfigItem {
id: string;
@@ -24,6 +26,7 @@ import PKG from "../../../cc-plugin.config";
// type: "normal",
// });
chrome.tabs.create({ url: url });
ga.fireEventWithParam(GA_EventName.Rate, "go");
}
}
const config: ConfigItem[] = [
@@ -44,6 +47,7 @@ import PKG from "../../../cc-plugin.config";
title: "我已评价",
click: () => {
chrome.storage.local.set({ [HasRate]: true });
ga.fireEventWithParam(GA_EventName.Rate, "has rate");
},
},
{