2012年6月10日 星期日

Lab41 Google Analytics

此題目及文章來自於 中原大學的張耀仁教授的部落格網站

1. Enter Google Analytics 
 

2. Put the code provided by  Google Analytics in your own blog.
 

3. Check the results to see the daily traffic chart, the recent visitors by locations.

 步驟
1.進入Google Analytics  
2.依照 Google的指示完成 登入
3.點選右上方 管理員→追蹤程式碼→將此程式碼貼到網頁上,如下即可
4. Google Analytics 無法 馬上完成 分析的圖表
5.可點選 左上方即時→總攬即可看到即時的網站被瀏覽的狀態

即時的網站被瀏覽的狀態

無法 馬上完成 分析的圖表
 


<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-32557616-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>


1 則留言: