使用C#的Google Analytics(分析)訪問 (Google Analytics Access with C#)


問題描述

使用 C# 訪問 Google Analytics(分析) (Google Analytics Access with C#)

我知道 Google Analytics 沒有官方 API,但有沒有辦法使用 C# 訪問 Google Analytics Reports?


參考解法

方法 1:

Update: Google launched a Google Analytics API today. Google Analytics Blog ‑ API Launched

方法 2:

I wrote a small project that lets you generate pretty much any Analytics report. It's listed on Google's Analytics API page ‑ http://code.google.com/apis/analytics/docs/gdata/gdataArticlesCode.html

You can read about it here and get the source code ‑ http://www.reimers.dk/blogs/jacob_reimers_weblog/archive/2009/05/09/added‑google‑analytics‑reader‑for‑net.aspx

方法 3:

I emailed them asking this same question a while back and here's the response I got:

Hello,

Thank you for your email. I apologize for the delay in replying to your email. Google Analytics does not currently provide an API to access the reporting data. However, we do offer export functionality for single reports in the following formats:

  • PDF
  • Tab separated value (TSV)
  • XML
  • Excel (CSV)

This feature allows you to easily import report data into your favorite spreadsheet application or to process the data otherwise.

Additionally, we're unable to provide support for custom implementations of Google Analytics. For this level of support, you can contact one of our highly qualified Google Analytics Authorized Consultants for assistance with advanced needs. These partners deliver a number of professional services such as installation support, training, and advanced filter and e‑commerce configurations.

For a complete list of our worldwide partners and a more detailed description of the services they offer, please go to http://www.google.com/analytics/support_partner_provided.html

For additional questions, please visit the Analytics Help Center at http://www.google.com/support/googleanalytics/?utm_id=tf. You can also find helpful tips and information by visiting the Google Analytics Help Forum at http://groups.google.com/group/analytics‑help?utm_id=tr.

Sincerely,

[snip]

Analytics Support


For the latest updates as well as some helpful tips on Google Analytics, check out the Google Analytics blog at http://analytics.blogspot.com


方法 4:

I have a completed library for called GoogleAnalytics.Net that allows you to fire page views/events/transactions from within .net code.

You can download the library from it's project home page:

http://www.diaryofaninja.com/projects/details/ga‑dot‑net

方法 5:

This guy has had some success with at least some light Analytics integration. Now I realize this isn't exactly what you're looking for, but he does mention a book and perhaps you can get in touch with him.

(by Detlef D. DoerschelnMichael JohnsonJacob Reimersuser2189331Dougxanadont)

參考文件

  1. Google Analytics Access with C# (CC BY‑SA 2.5/3.0/4.0)

#google-analytics-api #google-analytics #C#






相關問題

使用C#的Google Analytics(分析)訪問 (Google Analytics Access with C#)

嘗試安裝新的 Google Analytics 3.0 Beta 時出現鏈接器錯誤 (Linker errors when trying to install new Google Analytics 3.0 Beta)

Google Analytics:數據導入和每日上傳的區別 (Google Analytics: Difference between Data Import & Daily upload)

Google Reporting API for Analytics 庫依賴項 (Google Reporting API for Analytics library dependencies)

將 Google Analytics 權限分配給整個公司域 (Assign Google Analytics Permission To Whole Company Domain)

將 google-api-client 0.9.pre3 集成到 dashing 後的 NoMethodError (NoMethodError after integrating google-api-client 0.9.pre3 in dashing)

谷歌分析:在我的網站上顯示數據時,我可以使用自定義維度名稱而不是索引嗎 (Google analytics : Can I use custom dimension name instead of index while showing data on Report On my Site)

Pandas / Google Analytics API 身份驗證嘗試給我帶來了一個奇怪的 python 錯誤 (Pandas / Google Analytics API authentication attempt throws me a weird python error)

如何訪問行為流數據?(在應用程序 Google Analytics 帳戶上。) (How to access Behavior Flow data? (on a Application Google Analytics Account.))

如何在 Google Analytics 的一份報告中單獨細分指標? (How to individually segment metrics in one report in Google Analytics?)

Python - 問題使用循環每天得到 (Python - Problem use loops to get day by day)

我想要在 PHP 中使用 orderBy 和 Filters 的 Google Analytics Data API (GA4) 示例代碼 (I want a sample code for Google Analytics Data API (GA4) in PHP using orderBy and Filters)







留言討論