mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
🚨
This commit is contained in:
parent
4340f5bd17
commit
710e703867
2 changed files with 4 additions and 3 deletions
2
app/src/types/index.d.ts
vendored
2
app/src/types/index.d.ts
vendored
|
|
@ -26,7 +26,7 @@ type TBazaarType = "templates" | "icons" | "widgets" | "themes"
|
||||||
declare module "blueimp-md5"
|
declare module "blueimp-md5"
|
||||||
|
|
||||||
interface Window {
|
interface Window {
|
||||||
dataLayer: string[]
|
dataLayer: any[]
|
||||||
siyuan: ISiyuan
|
siyuan: ISiyuan
|
||||||
webkit: any
|
webkit: any
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -164,8 +164,9 @@ export const onGetConfig = (isStart: boolean) => {
|
||||||
if (!window.siyuan.config.system.disableGoogleAnalytics) {
|
if (!window.siyuan.config.system.disableGoogleAnalytics) {
|
||||||
try {
|
try {
|
||||||
window.dataLayer = window.dataLayer || [];
|
window.dataLayer = window.dataLayer || [];
|
||||||
// @ts-ignore
|
window.gtag = function (...args) {
|
||||||
window.gtag = () => {window.dataLayer.push(arguments)};
|
window.dataLayer.push(args);
|
||||||
|
};
|
||||||
window.gtag("js", new Date());
|
window.gtag("js", new Date());
|
||||||
window.gtag("config", "G-L7WEXVQCR9");
|
window.gtag("config", "G-L7WEXVQCR9");
|
||||||
const para = {
|
const para = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue