Update layout.html

pull/577/head
Mr Chen 12 months ago
parent 8cab94e26c
commit e944c9fbc5
  1. 18
      route/templates/default/layout.html

@ -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>

Loading…
Cancel
Save