PHP Class TheIconic\Tracking\GoogleAnalytics\Network\PrepareUrl

Builds the URL.
Exibir arquivo Open project: theiconic/php-ga-measurement-protocol Class Usage Examples

Public Methods

Method Description
build ( string $url, array $singleParameters, array $compoundParameters ) : string Build URL which is sent to Google Analytics
getPayloadParameters ( ) : array

Private Methods

Method Description
getCompoundParametersPayload ( array $compoundParameters ) : array Prepares compound parameters inside collections to be sent to GA.
getSingleParametersPayload ( array $singleParameters ) : array Prepares all the Single Parameters to be sent to GA.

Method Details

build() public method

Build URL which is sent to Google Analytics
public build ( string $url, array $singleParameters, array $compoundParameters ) : string
$url string
$singleParameters array
$compoundParameters array
return string

getPayloadParameters() public method

public getPayloadParameters ( ) : array
return array