mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-12 11:19:56 +00:00
fix: 修改谷歌分析代码
This commit is contained in:
parent
3915c065fe
commit
dff22272b5
@ -11,6 +11,11 @@
|
||||
<link rel="stylesheet" href="../css/common.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/rem.css">
|
||||
<link rel="stylesheet" href="../css/about.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="BulletBox"></div>
|
||||
|
||||
@ -9,6 +9,11 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="shortcut icon" href="../img/favicon.ico">
|
||||
<link rel="stylesheet" href="../css/privacy.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
|
||||
@ -11,6 +11,11 @@
|
||||
<link rel="stylesheet" href="../css/common.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/rem.css">
|
||||
<link rel="stylesheet" href="../css/download.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="BulletBox"></div>
|
||||
|
||||
@ -17,6 +17,11 @@
|
||||
<link rel="stylesheet" href="../css/common.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="../css/rem.css"/>
|
||||
<link rel="stylesheet" href="../css/help.css"/>
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
@ -11,6 +11,11 @@
|
||||
<link rel="stylesheet" type="text/css" href="../css/common.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/rem.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/home.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="layout">
|
||||
|
||||
@ -11,6 +11,11 @@
|
||||
<link rel="stylesheet" href="../css/common.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/rem.css">
|
||||
<link rel="stylesheet" href="../css/log.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="layout">
|
||||
|
||||
@ -11,6 +11,11 @@
|
||||
<link rel="stylesheet" href="../css/common.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/rem.css">
|
||||
<link rel="stylesheet" href="../css/price.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="BulletBox1">
|
||||
|
||||
@ -9,6 +9,11 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="shortcut icon" href="../img/favicon.ico">
|
||||
<link rel="stylesheet" href="../css/privacy.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
|
||||
@ -11,6 +11,11 @@
|
||||
<link rel="stylesheet" href="../css/common.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/rem.css">
|
||||
<link rel="stylesheet" href="../css/product.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="layout">
|
||||
|
||||
@ -11,6 +11,11 @@
|
||||
<link rel="stylesheet" href="../css/common.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/rem.css">
|
||||
<link rel="stylesheet" href="../css/solution.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="layout">
|
||||
|
||||
30
public/site/js/common.js
vendored
30
public/site/js/common.js
vendored
@ -200,35 +200,5 @@ const openInNewTab = (url)=> {
|
||||
const win = window.open(url, '_blank');
|
||||
win.focus();
|
||||
}
|
||||
// 引入谷歌分析代码
|
||||
let scriptElement = document.createElement('script');
|
||||
scriptElement.async = true;
|
||||
scriptElement.src = 'https://www.googletagmanager.com/gtag/js?id=AW-16660800396';
|
||||
let scriptElement1 = document.createElement('script');
|
||||
scriptElement1.async = true;
|
||||
scriptElement1.src = 'https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J';
|
||||
|
||||
// 在 script 元素加载完成后执行的回调函数
|
||||
scriptElement.onload = function() {
|
||||
let customScript = document.createElement('script');
|
||||
customScript.textContent = `
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'AW-16660800396');`
|
||||
document.head.appendChild(customScript);
|
||||
};
|
||||
scriptElement1.onload = function() {
|
||||
let customScript = document.createElement('script');
|
||||
customScript.textContent = `
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
gtag('config', 'G-PE77P6491J'); `
|
||||
document.head.appendChild(customScript);
|
||||
};
|
||||
// 将 script 元素插入到文档的 head 元素中
|
||||
document.head.appendChild(scriptElement);
|
||||
document.head.appendChild(scriptElement1);
|
||||
|
||||
|
||||
|
||||
6
public/site/js/googleAnalyze1.js
vendored
Normal file
6
public/site/js/googleAnalyze1.js
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() {
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
gtag("js", new Date());
|
||||
gtag("config", "AW-16660800396");
|
||||
6
public/site/js/googleAnalyze2.js
vendored
Normal file
6
public/site/js/googleAnalyze2.js
vendored
Normal file
@ -0,0 +1,6 @@
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() {
|
||||
dataLayer.push(arguments);
|
||||
}
|
||||
gtag("js", new Date());
|
||||
gtag("config", "G-PE77P6491J");
|
||||
@ -11,6 +11,11 @@
|
||||
<link rel="stylesheet" href="../css/common.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/rem.css">
|
||||
<link rel="stylesheet" href="../css/about.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="BulletBox"></div>
|
||||
|
||||
@ -9,6 +9,11 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="shortcut icon" href="../img/favicon.ico">
|
||||
<link rel="stylesheet" href="../css/privacy.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
|
||||
@ -11,6 +11,11 @@
|
||||
<link rel="stylesheet" href="../css/common.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/rem.css">
|
||||
<link rel="stylesheet" href="../css/download.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="BulletBox"></div>
|
||||
|
||||
@ -11,6 +11,11 @@
|
||||
<link rel="stylesheet" href="../css/common.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/rem.css">
|
||||
<link rel="stylesheet" href="../css/help.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="layout">
|
||||
|
||||
@ -11,6 +11,11 @@
|
||||
<link rel="stylesheet" type="text/css" href="../css/common.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/rem.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/home.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="layout">
|
||||
|
||||
@ -11,6 +11,11 @@
|
||||
<link rel="stylesheet" href="../css/common.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/rem.css">
|
||||
<link rel="stylesheet" href="../css/log.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="layout">
|
||||
|
||||
@ -11,6 +11,11 @@
|
||||
<link rel="stylesheet" href="../css/common.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/rem.css">
|
||||
<link rel="stylesheet" href="../css/price.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div class="BulletBox1">
|
||||
|
||||
@ -9,6 +9,11 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="shortcut icon" href="../img/favicon.ico">
|
||||
<link rel="stylesheet" href="../css/privacy.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<style>
|
||||
|
||||
@ -11,6 +11,11 @@
|
||||
<link rel="stylesheet" href="../css/common.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/rem.css">
|
||||
<link rel="stylesheet" href="../css/product.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="layout">
|
||||
|
||||
@ -11,6 +11,11 @@
|
||||
<link rel="stylesheet" href="../css/common.css">
|
||||
<link rel="stylesheet" type="text/css" href="../css/rem.css">
|
||||
<link rel="stylesheet" href="../css/solution.css">
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-16660800396"></script>
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-PE77P6491J"></script>
|
||||
<script src="../js/googleAnalyze1.js"></script>
|
||||
<script src="../js/googleAnalyze2.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="layout">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user