@capillarytech/cap-ui-utils 1.0.12 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/GA/index.js +6 -2
  2. package/package.json +1 -1
package/GA/index.js CHANGED
@@ -14,7 +14,7 @@ const _initialize = (GAConfigs) => {
14
14
  return;
15
15
  }
16
16
  if(GAConfigs.accessKey) {
17
- ReactGA.initialize(GAConfigs.accessKey,{debug: true,}); //UA-152081629-1
17
+ ReactGA.initialize(GAConfigs.accessKey,{debug: true,});
18
18
  }
19
19
  if(GAConfigs.trackError){
20
20
  //Track Error
@@ -25,6 +25,9 @@ const _initialize = (GAConfigs) => {
25
25
  eventsAfterInitialize();
26
26
  log("Cap GA initialized");
27
27
  }
28
+ const setCustomDimension= value => {
29
+ ReactGA.set(value);
30
+ }
28
31
  const initialize = (GAConfigs) =>{
29
32
  if (isEmpty(GAConfigs)) {
30
33
  warn("Cannot initialize empty object");
@@ -82,5 +85,6 @@ export default{
82
85
  initialize,
83
86
  timeTracker,
84
87
  tracker,
85
- routeTrackerWrapper
88
+ routeTrackerWrapper,
89
+ setCustomDimension
86
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capillarytech/cap-ui-utils",
3
- "version": "1.0.12",
3
+ "version": "1.2.1",
4
4
  "description": "Utility functions shared accross all the modules",
5
5
  "main": "index.js",
6
6
  "scripts": {