SproutCMS

This is the code documentation for the SproutCMS project

class SessionStats

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-05-06
**/
class NewClassName extends SessionStats {
    
    /**
    * Value of the 'utm_medium' query string parameter
    * from the most recent request which contained this parameter
    **/
    public function utmMedium () {
        // Method code goes here
    }
    
    /**
    * Value of the 'utm_content' query string parameter
    * from the most recent request which contained this parameter
    **/
    public function utmContent () {
        // Method code goes here
    }
    
    /**
    * Value of the 'utm_term' query string parameter
    * from the most recent request which contained this parameter
    **/
    public function utmTerm () {
        // Method code goes here
    }
    
    /**
    * Value of the 'utm_campaign' query string parameter
    * from the most recent request which contained this parameter
    **/
    public function utmCampaign () {
        // Method code goes here
    }
    
    /**
    * Value of the 'utm_source' query string parameter
    * from the most recent request which contained this parameter
    **/
    public function utmSource () {
        // Method code goes here
    }
    
    /**
    * The initial HTTP referrer when the session was first started
    **/
    public function referrer () {
        // Method code goes here
    }
    
    /**
    * How long the user has been on the site
    **/
    public function timeOnSite () {
        // Method code goes here
    }
    
    /**
    * Time the session started
    **/
    public function timeStart () {
        // Method code goes here
    }
    
    /**
    * Return the total number of unique page views
    **/
    public function uniquePageviews () {
        // Method code goes here
    }
    
    /**
    * Return the number of page views for a given url
    **/
    public function numPageviews (int $url) {
        // Method code goes here
    }
    
    /**
    * Return the total number of page views
    **/
    public function totalPageviews () {
        // Method code goes here
    }
    
    /**
    * Auto-generate UTM params based on the initial request referrer
    **/
    private function autoDetectSourceMedium (string $referrer) {
        // Method code goes here
    }
    
    /**
    * Track a page view in the session
    **/
    public function trackPageView () {
        // Method code goes here
    }
    
    /**
    * Check whether this content should be tracked, and enable tracking in this case
    **/
    public function init () {
        // Method code goes here
    }
    
    /**
    * Session level tracking - utm tags, referrer, etc
    **/
    protected function trackSession () {
        // Method code goes here
    }
    
}
?>