PHP Class Piwik\Tracker\TrackerCodeGenerator

Show file Open project: piwik/piwik Class Usage Examples

Public Methods

Method Description
generate ( integer $idSite, string $piwikUrl, boolean $mergeSubdomains = false, boolean $groupPageTitlesByDomain = false, boolean $mergeAliasUrls = false, array $visitorCustomVariables = null, array $pageCustomVariables = null, string $customCampaignNameQueryParam = null, string $customCampaignKeywordParam = null, boolean $doNotTrack = false, boolean $disableCookies = false, boolean $trackNoScript = false ) : string

Private Methods

Method Description
getJavascriptTagOptions ( $idSite, $mergeSubdomains, $mergeAliasUrls )

Method Details

generate() public method

public generate ( integer $idSite, string $piwikUrl, boolean $mergeSubdomains = false, boolean $groupPageTitlesByDomain = false, boolean $mergeAliasUrls = false, array $visitorCustomVariables = null, array $pageCustomVariables = null, string $customCampaignNameQueryParam = null, string $customCampaignKeywordParam = null, boolean $doNotTrack = false, boolean $disableCookies = false, boolean $trackNoScript = false ) : string
$idSite integer
$piwikUrl string http://path/to/piwik/site/
$mergeSubdomains boolean
$groupPageTitlesByDomain boolean
$mergeAliasUrls boolean
$visitorCustomVariables array
$pageCustomVariables array
$customCampaignNameQueryParam string
$customCampaignKeywordParam string
$doNotTrack boolean
$disableCookies boolean
$trackNoScript boolean
return string Javascript code.