This is the code documentation for the SproutCMS project
Search documentation |
class SessionStats
Variables
Functions
private autoDetectSourceMediumarray SessionStats::autoDetectSourceMedium ( string $referrer ); Auto-generate UTM params based on the initial request referrer public initunknown SessionStats::init ( ); Check whether this content should be tracked, and enable tracking in this case public numPageviewsint SessionStats::numPageviews ( int $url ); Return the number of page views for a given url public referrerstring SessionStats::referrer ( ); The initial HTTP referrer when the session was first started public timeOnSiteDateInterval SessionStats::timeOnSite ( ); How long the user has been on the site public timeStartDateTime SessionStats::timeStart ( ); Time the session started public totalPageviewsint SessionStats::totalPageviews ( ); Return the total number of page views public trackPageViewvoid SessionStats::trackPageView ( ); Track a page view in the session protected trackSessionvoid SessionStats::trackSession ( ); Session level tracking - utm tags, referrer, etc public uniquePageviewsint SessionStats::uniquePageviews ( ); Return the total number of unique page views public utmCampaignstring SessionStats::utmCampaign ( ); Value of the 'utm_campaign' query string parameter from the most recent request which contained this parameter public utmContentstring SessionStats::utmContent ( ); Value of the 'utm_content' query string parameter from the most recent request which contained this parameter public utmMediumstring SessionStats::utmMedium ( ); Value of the 'utm_medium' query string parameter from the most recent request which contained this parameter public utmSourcestring SessionStats::utmSource ( ); Value of the 'utm_source' query string parameter from the most recent request which contained this parameter public utmTermstring SessionStats::utmTerm ( ); Value of the 'utm_term' query string parameter from the most recent request which contained this parameter |
Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Monday, 3rd April, 2023 at 02:59 pm |