Showing posts with label piwik. Show all posts
Showing posts with label piwik. Show all posts

Wednesday, March 25, 2009

Piwik安装后不显示数据

问题描述:在下列情况下,dashboard没有数据显示
1 选择日期为当天
2 数据库中,表格piwik_log_visit有访问数据

解决方法
:
设置php.ini中的时区为

date.timezone = Asia/Shanghai

若无修改php.ini的权限
修改piwik源码中的 index.php , piwik.php:


date_default_timezone_set("Asia/Shanghai");

php支持的时区列表

Friday, March 20, 2009

Piwik visit 定义

Below texts are from here
#
How is a Unique Visitor counted in Piwik?

Unique Visitors is the number of visitors coming to your website; Unique Visitors are determined using cookies. If the visitor doesn't accept cookie, a simple heuristic is used to try to match the visitor to a previous visitor with the same features (IP, resolution, browser, plugins, OS, ...).
#
Positive Negative
How is a 'visit' defined in Piwik?

If a visitor comes to your website for the first time, or if he comes returns to your website 30 minutes after his last page view, this will be recorded as a new visit.

You can change this value for measuring visits (session timeout) in the configuration file (config/global.ini.php) by adjusting the visit_standard_length value (defaults to 1800 seconds, 30 minutes).

Unique Visitor 是通过cookie判断的,若cookie禁用,则通过IP,分辨率,浏览器,插件,操作系统等因素与前一访问者比较进行判断。

同一 Visitor 间隔 30分钟内的访问只算一次visit。 可配置

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 文件