class Piwik (View source)

Class Piwik

Methods

__construct(array $args = array())

No description

object
actions(string $format = null)

actions Get actions (hits) for the specific time period

array
downloads(string $format = null)

downloads Get file downloads for the specific time period

array
keywords(string $format = null)

keywords Get search keywords for the specific time period

array
last_visits(int $count, string $format = null)

last_visits Get information about last 10 visits (ip, time, country, pages, etc.)

array
last_visits_parsed(int $count, string $format = null)

last_visits_parsed Get information about last 10 visits (ip, time, country, pages, etc.) in a formatted array with GeoIP information if enabled

array
outlinks(string $format = null)

actions Get outlinks for the specific time period

array
page_titles(string $format = null)

page_titles Get page visit information for the specific time period

array
search_engines(string $format = null)

search_engines Get search engine referer information for the specific time period

array
unique_visitors(string $format = null)

unique_visitors Get unique visitors for the specific time period

array
visits(string $format = null)

visits Get all visits for the specific time period

array
websites(string $format = null)

websites Get refering websites (traffic sources) for the specific time period

string
tag()

tag Get javascript tag for use in tracking the website

array
seo_rank($id, string $format = 'json')

seo_rank Get SEO Rank for the website

array
version(string $format = null)

version Get Version of the Piwik Server

array
custom($method, array $arguments, mixed $id = false, bool $period = false, string $format = null)

No description

Details

__construct(array $args = array())

No description

Parameters

array $args

object actions(string $format = null)

actions Get actions (hits) for the specific time period

Parameters

string $format

Override string for the format of the API Query to be returned as

Return Value

object

array downloads(string $format = null)

downloads Get file downloads for the specific time period

Parameters

string $format

Override string for the format of the API Query to be returned as

Return Value

array

array keywords(string $format = null)

keywords Get search keywords for the specific time period

Parameters

string $format

Override string for the format of the API Query to be returned as

Return Value

array

array last_visits(int $count, string $format = null)

last_visits Get information about last 10 visits (ip, time, country, pages, etc.)

Parameters

int $count

Limit the number of visits returned by $count

string $format

Override string for the format of the API Query to be returned as

Return Value

array

array last_visits_parsed(int $count, string $format = null)

last_visits_parsed Get information about last 10 visits (ip, time, country, pages, etc.) in a formatted array with GeoIP information if enabled

Parameters

int $count

Limit the number of visits returned by $count

string $format

Override string for the format of the API Query to be returned as

Return Value

array

actions Get outlinks for the specific time period

Parameters

string $format

Override string for the format of the API Query to be returned as

Return Value

array

array page_titles(string $format = null)

page_titles Get page visit information for the specific time period

Parameters

string $format

Override string for the format of the API Query to be returned as

Return Value

array

array search_engines(string $format = null)

search_engines Get search engine referer information for the specific time period

Parameters

string $format

Override string for the format of the API Query to be returned as

Return Value

array

array unique_visitors(string $format = null)

unique_visitors Get unique visitors for the specific time period

Parameters

string $format

Override string for the format of the API Query to be returned as

Return Value

array

array visits(string $format = null)

visits Get all visits for the specific time period

Parameters

string $format

Override string for the format of the API Query to be returned as

Return Value

array

array websites(string $format = null)

websites Get refering websites (traffic sources) for the specific time period

Parameters

string $format

Override string for the format of the API Query to be returned as

Return Value

array

string tag()

tag Get javascript tag for use in tracking the website

Note: Works best when using PHP as the format

Return Value

string

array seo_rank($id, string $format = 'json')

seo_rank Get SEO Rank for the website

Parameters

$id
string $format

Override string for the format of the API Query to be returned as

Return Value

array

array version(string $format = null)

version Get Version of the Piwik Server

Parameters

string $format

Override string for the format of the API Query to be returned as

Return Value

array

array custom($method, array $arguments, mixed $id = false, bool $period = false, string $format = null)

No description

Parameters

$method
array $arguments
mixed $id

values can be true/false to add the default site id, or you can specify the id here

bool $period
string $format

Return Value

array