Method |
Description |
|
addItem ( $methodName, array $methodArguments ) |
Adds an item to a compund parameter collection. |
|
fixTypos ( string $methodName ) : string |
Fix typos that went into releases, this way we ensure we don't break scripts in production. |
|
getEndpoint ( ) : string |
Gets the full endpoint to GA. |
|
getFullParameterClass ( $parameterClass, $methodName ) : string |
Gets the fully qualified name for a parameter. |
|
getHttpClient ( ) : HttpClient |
Gets the HttpClient. |
|
getIndexFromArguments ( $methodArguments ) : string |
Gets the index value from the arguments. |
|
getParameter ( $methodName, array $methodArguments ) : string |
Gets the value for a parameter. |
|
getParameterClassConstant ( $constant, $exceptionMsg ) : mixed |
Gets a contant from a class dynamically. |
|
hasMinimumRequiredParameters ( ) : boolean |
Validates the minimum required parameters for every GA hit are being sent. |
|
sendHit ( $methodName ) : AnalyticsResponse |
Sends a hit to GA. The hit will contain in the payload all the parameters added before. |
|
setParameter ( $methodName, array $methodArguments ) |
Sets the value for a parameter. |
|
setParameterActionTo ( $parameter, $action ) |
Sets a parameter action to the value specified by the method call. |
|