Google Analytics 的發展史(1995~2024年)

Google Analytics Haran 2年前 (2021-11-23) 1442次瀏覽 0條留言

Google Analytics發展大概可以用下圖表示:

Google Analytics 的發展史(1995~2024年)

 

Google Analytics是谷歌在2005年收購Urchin,所以Urchin是Google Analytics的前身。

Urchin

1995年,Quantified Systems公司裡一個叫Paul的人開發Urchin的第一個版本,這家是成立於1995年,成立的時間比谷歌的還要早。

1999年,Quantified Systems公司更名為Urchin Software Corporation,主要產品就是Urchin這一款網站分析工具。

Urchin早期的樣子是這樣:

Google Analytics 的發展史(1995~2024年)

GA1:Urchin Analytics Code (urchin.js)

2005年,谷歌收購了Urchin Software Corp,Urchin更名為“Urchin from Google”,這時候加載的js是urchin.js 

GA2:Google Analytics Classic (ga.js)

2007年,谷歌發佈Synchronous Code,也叫Classic Analytics版,這時候加載的是ga.js ,這時期的追蹤程式是這樣的:

<—Sample GA Synchronous Code –>
<script type="”text/javascript”"> 
var gaJsHost = ((“https:” == document.location.protocol) ? “https://ssl.” : “https://www.”);
document.write(unescape(“%3Cscript src='” + gaJsHost + “google-analytics.com/ga.js’ type=’text/javascript’%3E%3C/script%3E”));
</script>
<script type="”text/javascript”">
try
var pageTracker = _gat._getTracker(“UA-xxxxxx-x”);
pageTracker._trackPageview();
} catch(err) {}
</script>

2009年,谷歌發佈Event Tracking功能

2009年,谷歌發佈Asynchronous Code,也叫Classic Analytics版,這時候加載的還是ga.js ,其實,Classic Analytics版有同步和異步加載兩個版本,這時期的追蹤碼是這樣的:

<script type="text/javascript"> 
var _gaq = _gaq || [];
_gaq.push([‘_setAccount’, ‘UA-XXXXXXXX-X’]);
_gaq.push([‘_trackPageview’]); (function() {
var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true;
ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘https://www’) +
‘.google-analytics.com/ga.js’; var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);})();
</script>

 

GA3:Google Analytics Universal (analytics.js)

2012年,谷歌發佈了 Universal Analytics版,這時候加載的還是 ‘analytics.js’,這時期的追蹤程式是這樣的:

<!-- Google Analytics -->
 <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); 
ga('create', 'UA-XXXXX-Y', 'auto'); 
ga('send', 'pageview'); 
</script> <!-- End Google Analytics -->

2012年,谷歌發佈GTM、GA SDK

2014年,谷歌發佈Enhanced Ecommerce

2016年,谷歌發佈Google Analytics 360

2016年,谷歌發佈Google Analytics Solutions

 

GA4:Google Analytics 4 (gtag.js)

2017年,谷歌發佈Global Site Tag 版本,這個叫普通全局版,這時期的追蹤碼是這樣的:

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

這個主要是臨時版本,為了應對蘋果的ITP

2019年,谷歌發佈APP+Web版本,這個叫混合全局版,這時期的追蹤碼是這樣的:

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

Global Site Tag用的是跟蹤ID是以UA開頭,APP+Web用的評估ID是以G開頭的;Global Site Tag發送數據的協議用v=1的版本,其實是跟Universal Analytics一樣的,但APP+Web發送數據用的是v=2,這是一個全新的版本

2020年10月,Google 推出最Google Analytics 4,其實就是APP+Web改名為Google Analytics 4, 简称GA4正式發布

2021年8月,發佈Google Analytics 4 的360版本

2022年4月,新版GA360定價公佈,不同地區起步價不同,大中華地區是3萬美元/年起,有些地區是5萬美元/年起

2023年7月,免費的Universal Analytics將會停止收集和處理資料

2024年7月,付費的GA4 360將會停止收集和處理資料

 


如果您在操作上仍有任何疑問,歡迎留言交流,或加入:Google Analytics 4交流社團發問
Like (6)
發佈我的留言
取消留言
表情 贴图 加粗 删除线 居中 斜体

Hi,*为發佈留言必須填寫。

  • 顯示名稱*
  • 電子郵件地址*
  • 個人網站網址