mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-20 00:48:43 +00:00
评价统计
This commit is contained in:
parent
45043ffdbb
commit
5bdaf105a1
@ -80,6 +80,7 @@ export enum GA_EventName {
|
|||||||
EngineVersion = "engine_version",
|
EngineVersion = "engine_version",
|
||||||
AppVersion = "app_version",
|
AppVersion = "app_version",
|
||||||
Popup = "popup",
|
Popup = "popup",
|
||||||
|
Rate = "rate",
|
||||||
GameUrl = "game_url",
|
GameUrl = "game_url",
|
||||||
GamePlayer = "game_player",
|
GamePlayer = "game_player",
|
||||||
GamePause = "game_pause",
|
GamePause = "game_pause",
|
||||||
|
@ -2,6 +2,7 @@ import { debugLog, Page, PluginEvent } from "../../core/types";
|
|||||||
import { getDevToolsInspectorId } from "../../core/util";
|
import { getDevToolsInspectorId } from "../../core/util";
|
||||||
import { Terminal } from "../terminal";
|
import { Terminal } from "../terminal";
|
||||||
import { tabMgr } from "./tabMgr";
|
import { tabMgr } from "./tabMgr";
|
||||||
|
import "./notify";
|
||||||
const terminal = new Terminal(Page.Background);
|
const terminal = new Terminal(Page.Background);
|
||||||
debugLog && console.log(...terminal.init());
|
debugLog && console.log(...terminal.init());
|
||||||
|
|
||||||
|
@ -1,4 +1,6 @@
|
|||||||
import PKG from "../../../cc-plugin.config";
|
import PKG from "../../../cc-plugin.config";
|
||||||
|
import { ga } from "../../ga";
|
||||||
|
import { GA_EventName } from "../../ga/type";
|
||||||
(async () => {
|
(async () => {
|
||||||
interface ConfigItem {
|
interface ConfigItem {
|
||||||
id: string;
|
id: string;
|
||||||
@ -24,6 +26,7 @@ import PKG from "../../../cc-plugin.config";
|
|||||||
// type: "normal",
|
// type: "normal",
|
||||||
// });
|
// });
|
||||||
chrome.tabs.create({ url: url });
|
chrome.tabs.create({ url: url });
|
||||||
|
ga.fireEventWithParam(GA_EventName.Rate, "go");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const config: ConfigItem[] = [
|
const config: ConfigItem[] = [
|
||||||
@ -44,6 +47,7 @@ import PKG from "../../../cc-plugin.config";
|
|||||||
title: "我已评价",
|
title: "我已评价",
|
||||||
click: () => {
|
click: () => {
|
||||||
chrome.storage.local.set({ [HasRate]: true });
|
chrome.storage.local.set({ [HasRate]: true });
|
||||||
|
ga.fireEventWithParam(GA_EventName.Rate, "has rate");
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user