mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update layout.html
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user