Update layout.html

This commit is contained in:
Mr Chen
2024-05-17 01:01:16 +08:00
parent 8cab94e26c
commit e944c9fbc5
+11 -7
View File
@@ -182,14 +182,18 @@ if (thisPath.indexOf('?')>-1){
<!-- 统计一下用户量,让我的开发更有激情 -->
<script type="text/javascript">
// $.ajaxSetup({ async: true });
$(document).ready(function(){
$.getScript('https://www.googletagmanager.com/gtag/js?id=G-FC74BB2RGD', function(){
console.log("load google ad!");
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-FC74BB2RGD');
});
setTimeout(function(){
$.getScript('https://www.googletagmanager.com/gtag/js?id=G-FC74BB2RGD', function(){
console.log("load google ad!");
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-FC74BB2RGD');
});
},1000);
});
</script>