Piwik
class Piwik (View source)
Class Piwik
Traits
Properties
protected ConfigRepository | $config | from ConfigTrait |
Methods
Convert URL from HTTP to HTTPS and vice versa
Initialise the Actions module
Initialise the Events Module
Initialise the Live Module
Initialise the Provider Module
Initialise the Referrers Module
Initialise the SitesManager Module
Initialise the VisitorInterest Module
Initialise the VisitsSummary Module
Get javascript tag for use in tracking the website
Create a custom request N.B. It is safer to raise a GitHub issue to request another API method
Get information about last 10 visits (ip, time, country, pages, etc.)
Get information about last 10 visits (ip, time, country, pages, etc.) in a formatted array with GeoIP information if enabled
Get page visit information for the specific time period
Get search engine referer information for the specific time period
Get referring websites (traffic sources) for the specific time period
Details
__construct(ConfigRepository $config, RequestRepository $request)
Piwik constructor.
string
getSiteId()
Retrieve Site ID from configuration
string
getPiwikUrl()
Retrieve Piwik URL from configuration
protected string
convertUrl(string $url, bool $https)
Convert URL from HTTP to HTTPS and vice versa
ActionsModule
getActions()
Initialise the Actions module
APIModule
getAPI()
Initialise the API Module
EventsModule
getEvents()
Initialise the Events Module
LiveModule
getLive()
Initialise the Live Module
ProviderModule
getProvider()
Initialise the Provider Module
ReferrersModule
getReferrers()
Initialise the Referrers Module
SEOModule
getSEO()
Initialise the SEO Module
SitesManagerModule
getSitesManager()
Initialise the SitesManager Module
VisitorInterestModule
getVisitorInterest()
Initialise the VisitorInterest Module
VisitsSummaryModule
getVisitsSummary()
Initialise the VisitsSummary Module
string
getTag()
Get javascript tag for use in tracking the website
mixed
getCustom(RequestOptions $requestOptions)
Create a custom request N.B. It is safer to raise a GitHub issue to request another API method
mixed
actions(string $format = null)
deprecated
deprecated
Get actions (hits) for the specific time period
mixed
downloads(string $format = null)
deprecated
deprecated
Get file downloads for the specific time period
mixed
keywords(string $format = null)
deprecated
deprecated
Get search keywords for the specific time period
mixed
last_visits(int $count, string $format = null)
deprecated
deprecated
Get information about last 10 visits (ip, time, country, pages, etc.)
mixed
last_visits_parsed(int $count, string $format = null)
deprecated
deprecated
Get information about last 10 visits (ip, time, country, pages, etc.) in a formatted array with GeoIP information if enabled
mixed
outlinks(string $format = null)
deprecated
deprecated
Get outlinks for the specific time period
mixed
page_titles(string $format = null)
deprecated
deprecated
Get page visit information for the specific time period
mixed
search_engines(string $format = null)
deprecated
deprecated
Get search engine referer information for the specific time period
mixed
unique_visitors(string $format = null)
deprecated
deprecated
Get unique visitors for the specific time period
mixed
visits(string $format = null)
deprecated
deprecated
Get all visits for the specific time period
mixed
websites(string $format = null)
deprecated
deprecated
Get referring websites (traffic sources) for the specific time period
mixed
seo_rank(string $siteId, string $format = null)
deprecated
deprecated
Get SEO Rank for the website
string
tag()
deprecated
deprecated
Get javascript tag for use in tracking the website
mixed
version(string $format = null)
deprecated
deprecated
Get Version of the Piwik Server