Piwik for tracking eclipse usage


(nambi sankaran) #1

Hello

I am planning to use piwik for gathering of analytics/usage data of eclipse plugins, maven plugins and other java based software. To achieve this I need to have java client (instead of javascript) that can make http requests to the piwik server.

So, I would like to understand piwik api, so that I can make appropriate http call from the java client. Can you some one send a link or information about what is the http method and the parameters needed.

Thanks
Nambi


(Matthieu Aubry) #2

this is a frequent feature request http://dev.piwik.org/trac/ticket/134
please contribute a patch or plugin to do this style_emoticons/<#EMO_DIR#>/smile.gif


(nambi sankaran) #3

Sure, We can do that.

Right now, I am trying to understand the following API

http://sourceforge.net/apps/piwik/emarket/piwik.php?url=http%3A%2F%2Fd-sjc-nsankaran%2F&action_name=&idsite=2&res=1280x784&h=5&m=46&s=28&java=1&title=&urlref=

Can you provide me insight into what each parameter means and what are the valid values?

[quote=matthieu @ Jun 19 2009, 05:47 PM]this is a frequent feature request http://dev.piwik.org/trac/ticket/134
please contribute a patch or plugin to do this style_emoticons/<#EMO_DIR#>/smile.gif[/quote]


(nambi sankaran) #4

This JS describes most of the parameters, however it would be nice to have proper documentation

     var _pk_src = _pk_pkurl
    +'?url='+_pk_escape(document.location.href)
    +'&action_name='+_pk_escape(_pk_action_name)
    +'&idsite='+_pk_site
    +'&res='+screen.width+'x'+screen.height
    +'&h='+_pk_da.getHours()+'&m='+_pk_da.getMinutes()+'&s='+_pk_da.getSeconds()
    +'&fla='+_pk_fla+'&dir='+_pk_dir+'&qt='+_pk_qt+'&realp='+_pk_rea+'&pdf='+_pk_pdf
    +'&wma='+_pk_wma+'&java='+_pk_jav+'&cookie='+_pk_cookie
    +'&title='+_pk_title
    +'&urlref='+_pk_escape(_pk_rtu)
    +_pk_custom_vars_str;

[quote=nambi sankaran @ Jun 19 2009, 06:03 PM]Sure, We can do that.

Right now, I am trying to understand the following API

http://sourceforge.net/apps/piwik/emarket/piwik.php?url=http%3A%2F%2Fd-sjc-nsankaran%2F&action_name=&idsite=2&res=1280x784&h=5&m=46&s=28&java=1&title=&urlref=

Can you provide me insight into what each parameter means and what are the valid values?[/quote]


(Matthieu Aubry) #5

the API is not exactly stable yet; it could be exposed in a plugin as described in: http://dev.piwik.org/trac/ticket/134
currently the code is the best documentation.