PiwikTracker::getUrlTrackAction PHP Method

getUrlTrackAction() public method

Builds URL to track a new action.
See also: doTrackAction()
public getUrlTrackAction ( string $actionUrl, string $actionType ) : string
$actionUrl string URL of the download or outlink
$actionType string Type of the action: 'download' or 'link'
return string URL to piwik.php with all parameters set to track an action
    public function getUrlTrackAction($actionUrl, $actionType)
    {
        $url = $this->getRequest($this->idSite);
        $url .= '&' . $actionType . '=' . urlencode($actionUrl);
        return $url;
    }