Skip to content

簡介

加入Google網站分析 Google-Analytics

內容

註冊 註冊 註冊 註冊

追蹤 ID UA-126790141-1

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-126790141-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-126790141-1');
</script>

添加js在footer

註冊

themes/landscape/layout/_partial/
  `after-footer.ejs`

{% youtube j_XqoH__Nsw %}

Google與AdSense

GoogleAdSense

<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-1366278449398453",
    enable_page_level_ads: true
  });
</script>

參考資料

azyukei