Thursday, March 19, 2009

Piwik 统计来源网站

假设已经在www.example.com/index.html上添加了PiWik跟踪代码
1. 在http://testsite中加入链接 href="http://www.example.com/index.html"
则testsite会显示在 Referers->WebSites
2. 在http://testsite中加入链接
href="http://www.example.com/index.html?piwik_campaign=testsite"
则 Referers->Campaignes中会显示 testsite

可以用api函数Referers.getCampaigns (idSite, period, date, expanded = '') 访问campaigns的数据 API

3 其他参数
; variable name used to specify a download link
; Example: '/piwik.php?idsite=1&download=http://piwik.org/piwik.zip' will redirect to 'http://piwik.org/piwik.zip'
download_url_var_name = download

; variable name used to specify a link to an external website
; Example: '/piwik.php?idsite=1&link=http://piwik.org/' will redirect to 'http://piwik.org/'
outlink_url_var_name = link

; variable that contains the name of the download or the outlink to redirect to
; Example: '/piwik.php?idsite=1&download=http://piwik.org/piwik.zip&name=Piwik last version'
download_outlink_name_var = name

; variable name to track any campaign, for example CPC campaign
; Example: If a visitor first visits 'index.php?piwik_campaign=Adwords-CPC' then it will be counted as a campaign referer named 'Adwords-CPC'
campaign_var_name = piwik_campaign

; variable name to track any campaign keyword
; Example: If a visitor first visits 'index.php?piwik_campaign=Adwords-CPC&piwik_kwd=My killer keyword' then it will be counted as a campaign referer named 'Adwords-CPC' with the keyword 'My killer keyword'
campaign_keyword_var_name = piwik_kwd

更多参数查看piwik安装目录下的
globalconfig.php 文件

No comments: