Documentation
STATS
usage
<SEARCH>
<STATS>
<TYPE>{see list below}</TYPE>
<YEAR>YYYY</YEAR>
<MONTH>mm</MONTH>
<DAY>dd</DAY>
[<HOST>www.domain1.com</HOST>]
[<OS>{windows,mac,linux}</OS>]
[<BROWSER>{msie,mozilla,safari}</BROWSER>]
[<LANGUAGEID>three letters language code</LANGUAGEID>]
[<WITH perPage="n" page="n"/>]
</STATS>
</SEARCH>
retourne
<RESULTS/>
Returns statistics about the website
Statistics types
The different types of statistics available are the next :
- bots
- keywords
- indexed_pages
- external_referrers
- unique_referrers
- search_engines
- uniquevisitors
- hourly_charges
- hosts
- medias_top
- mediatypes_top
- languages
- providers
- tld
- visit_durations
- visit_volumes
Guidelines
If you want a call to a page to appear in the Nectil stats, you should at least make a call to the nql->execute() function in your PHP code.
If your page concerns a specific Media in Nectil, its ID should be mentionned in the url (mypage.php?ID=...&....). This way the Media will be automatically listed in the medias_top. If for whatever reasons you can't do so, fill the $_GET['ID'] with the ID before calling the nql->execute() function. It will have the same effect as having it in the real url.
exemples
<SEARCH>
<STATS>
<TYPE>uniquevisitors</TYPE>
<YEAR>2006</YEAR>
<MONTH>12</MONTH>
</STATS>
</SEARCH>
<SEARCH>
<STATS>
<TYPE>hourly_charges</TYPE>
<YEAR>2006</YEAR>
<MONTH>12</MONTH>
<DAY>01</DAY>
</STATS>
</SEARCH>