Craft\InstantAnalyticsService::pageViewTrackingUrl PHP Method

pageViewTrackingUrl() public method

Get a PageView tracking URL
public pageViewTrackingUrl ( string $url, string $title ) : string
$url string the URL to track
$title string the page title
return string the tracking URL
    public function pageViewTrackingUrl($url, $title)
    {
        $urlParams = array('url' => $url, 'title' => $title);
        $fileName = pathinfo(parse_url($url, PHP_URL_PATH), PATHINFO_BASENAME);
        $trackingUrl = UrlHelper::getSiteUrl('instantanalytics/pageViewTrack/' . $fileName, $urlParams);
        InstantAnalyticsPlugin::log("Created pageViewTrackingUrl for " . $trackingUrl, LogLevel::Info, false);
        return $trackingUrl;
    }