google analytics .

andyxl 2010-05-24 11:49:39
如何调用google analytics . api .
...全文
111 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
her886 2010-05-24
  • 打赏
  • 举报
回复
不会 学习 帮顶
jshi123 2010-05-24
  • 打赏
  • 举报
回复
注册一个帐号,完了google会给你一段javascript代码,把它贴到你的每个页面中(贴到母板页或公用的用户控件中最方便),然后就可以登录看访问统计了
guoheng90 2010-05-24
  • 打赏
  • 举报
回复
学习中
程序漫步 2010-05-24
  • 打赏
  • 举报
回复
那么多资料~~~~~~~~~~~
wuyq11 2010-05-24
  • 打赏
  • 举报
回复
先注册
再把代码嵌入的页面
http://www.google.com/support/googleanalytics/
皇城龙三 2010-05-24
  • 打赏
  • 举报
回复
Google Analytics Tracking API

The Google Analytics tracking API consists of two global objects; _gat for standard tracking and _gaq for asynchronous tracking. Both of these global objects contain methods for creating tracker objects. Tracker objects are used to track your pages and they have many methods to configure how that tracking will work.

This page is a complete reference of all the methods available in _gat, _gaq, and tracker objects.

_gat Object Methods
_getTracker(account) deprecated
_createTracker(opt_account, opt_name)
_getTrackerByName(opt_name)
_gaq Object Methods
_createAsyncTracker(accountId, opt_name) deprecated
_getAsyncTracker(opt_name) deprecated
push(commandArray)
Tracker Object Methods
_addIgnoredOrganic(newIgnoredOrganicKeyword)
_addIgnoredRef(newIgnoredReferrer)
_addItem(orderId, sku, name, category, price, quantity)
_addOrganic(newOrganicEngine, newOrganicKeyword, opt_prepend)
_addTrans(orderId, affiliation, total, tax, shipping, city, state, country)
_clearIgnoredOrganic()
_clearIgnoredRef()
_clearOrganic()
_cookiePathCopy(newPath)
_deleteCustomVar(index)
_getName()
_setAccount()
_getAccount()
_getClientInfo(1)
_getDetectFlash(1)
_getDetectTitle(1)
_getLinkerUrl(targetUrl, useHash)
_getLocalGifPath()
_getServiceMode()
_getVersion()
_getVisitorCustomVar(index)
_initData() deprecated
_link(targetUrl, useHash)
_linkByPost(formObject, useHash)
_setAllowAnchor(bool)
_setAllowHash(bool)
_setAllowLinker(bool)
_setCampContentKey(newCampContentKey)
_setCampMediumKey(newCampMedKey)
_setCampNameKey(newCampNameKey)
_setCampNOKey(newCampNOKey)
_setCampSourceKey(newCampSrcKey)
_setCampTermKey(newCampTermKey)
_setCampaignCookieTimeout(cookieTimeoutMillis)
_setCampaignTrack(bool)
_setClientInfo(bool)
_setCookiePath(newCookiePath)
_setCookiePersistence(milliseconds) deprecated
_setCookieTimeout(newDefaultTimeout) deprecated
_setCustomVar(index, name, value, opt_scope)
_setDetectFlash(bool)
_setDetectTitle(bool)
_setDomainName(newDomainName)
_setLocalGifPath(newLocalGifPath)
_setLocalRemoteServerMode()
_setLocalServerMode()
_setReferrerOverride(newReferrerUrl)
_setRemoteServerMode()
_setSampleRate(newRate)
_setSessionTimeout(newTimeout) deprecated
_setSessionCookieTimeout(cookieTimeoutMillis)
_setVar(newVal) deprecated
_setVisitorCookieTimeout(cookieTimeoutMillis)
_trackEvent(category, action, opt_label, opt_value)
_trackPageview(opt_pageURL)
_trackTrans()

详细: http://code.google.com/intl/zh-CN/apis/analytics/docs/gaJS/gaJSApi.html

62,039

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧