Skip to content

Commit

Permalink
WEB-1471:CHANGE: CamelCase on class name and improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
snipebin committed Mar 19, 2018
1 parent 4256bb8 commit c738033
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import provide from './provide';

/**
* Class for the `ga-task-manager` analytics.js plugin.
* @implements {GATaskManagerPublicInterface}
* @implements {GaTaskManagerPublicInterface}
*/
class gaTaskManager {
class GaTaskManager {
/**
* Registers declarative event tracking.
* @param {!Tracker} tracker Passed internally by analytics.js
Expand Down Expand Up @@ -83,7 +83,7 @@ class gaTaskManager {
* If a function is given, it will be executed every time at the moment of task execution.
* If a number is given, it will be cast automatically to a string by calling Number.toString() method.
* Observe size limit for the string value https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#customs
* @param {string} gaTaskName The name of the GA Task on which to set the Custom Dimension.
* @param {string} gaTaskName The name of the GA Task on which to set the Custom Dimension. Defaults to 'customTask'.
*/
setCustomDimension(index, value, gaTaskName = 'customTask') {
const userTaskName = 'customDimension' + index;
Expand Down Expand Up @@ -128,4 +128,4 @@ class gaTaskManager {
}
}

provide('gaTaskManager', gaTaskManager);
provide('GaTaskManager', GaTaskManager);

0 comments on commit c738033

Please sign in to comment.