diff --git a/__tests__/__snapshots__/index.js.snap b/__tests__/__snapshots__/index.js.snap index 416655e0..18663275 100644 --- a/__tests__/__snapshots__/index.js.snap +++ b/__tests__/__snapshots__/index.js.snap @@ -387,11 +387,5 @@ Object { "delay": [Function], "formatDuration": [Function], }, - "tracking": Object { - "default": undefined, - "event": [Function], - "init": [Function], - "pageView": [Function], - }, } `; diff --git a/config/default.json b/config/default.json index e7c3a7bf..38d4e982 100644 --- a/config/default.json +++ b/config/default.json @@ -2,6 +2,5 @@ "AV_SCAN_SCORER_REVIEW_TYPE_ID": "", "PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID": "", "PAGE_SIZE": 50, - "REVIEW_OPPORTUNITY_PAGE_SIZE": 1000, - "GOOGLE_ANALYTICS_ID": "" + "REVIEW_OPPORTUNITY_PAGE_SIZE": 1000 } diff --git a/config/development.json b/config/development.json index 95eeb428..b1519a01 100644 --- a/config/development.json +++ b/config/development.json @@ -1,5 +1,4 @@ { "AV_SCAN_SCORER_REVIEW_TYPE_ID": "68c5a381-c8ab-48af-92a7-7a869a4ee6c3", - "PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID": "52c91e85-745f-4e62-b592-9879a2dfe9fd", - "GOOGLE_ANALYTICS_ID": "UA-161803421-1" + "PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID": "52c91e85-745f-4e62-b592-9879a2dfe9fd" } diff --git a/config/production.json b/config/production.json index 92031113..d2b1223d 100644 --- a/config/production.json +++ b/config/production.json @@ -1,5 +1,4 @@ { "AV_SCAN_SCORER_REVIEW_TYPE_ID": "55bbb17d-aac2-45a6-89c3-a8d102863d05", - "PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID": "df51ca7d-fb0a-4147-9569-992fcf5aae48", - "GOOGLE_ANALYTICS_ID": "UA-6340959-1" + "PROVISIONAL_SCORING_COMPLETED_REVIEW_TYPE_ID": "df51ca7d-fb0a-4147-9569-992fcf5aae48" } diff --git a/config/webpack/default.js b/config/webpack/default.js index 3ef26273..4872dd72 100644 --- a/config/webpack/default.js +++ b/config/webpack/default.js @@ -19,7 +19,6 @@ module.exports = { 'moment-duration-format', 'react', 'react-dom', - 'react-ga', 'redux', 'redux-actions', 'isomorphic-fetch', diff --git a/package.json b/package.json index 74bc2abe..b5a3500b 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "lint:js": "./node_modules/.bin/eslint --ext .js,.jsx .", "test": "npm run lint && npm run jest" }, - "version": "0.17.0", + "version": "0.15.0", "dependencies": { "auth0-js": "^6.8.4", "config": "^3.2.0", @@ -44,7 +44,6 @@ "qs": "^6.5.2", "react": "^16.4.1", "react-dom": "^16.4.1", - "react-ga": "^2.7.0", "react-redux": "^6.0.1", "redux": "^3.7.2", "redux-actions": "^2.4.0", diff --git a/src/index.js b/src/index.js index b8c4c79f..78103660 100644 --- a/src/index.js +++ b/src/index.js @@ -12,5 +12,5 @@ export { actions } from './actions'; export { services } from './services'; export { - challenge, logger, errors, tc, time, mock, submission, tracking, + challenge, logger, errors, tc, time, mock, submission, } from './utils'; diff --git a/src/utils/index.js b/src/utils/index.js index d0212e21..6a6387a4 100644 --- a/src/utils/index.js +++ b/src/utils/index.js @@ -8,7 +8,6 @@ import * as mock from './mock'; import * as errors from './errors'; import * as filter from './challenge/filter'; import * as submission from './submission'; -import * as tracking from './tracking'; const challenge = { filter, @@ -22,5 +21,4 @@ export { mock, errors, submission, - tracking, }; diff --git a/src/utils/tracking.js b/src/utils/tracking.js deleted file mode 100644 index 4b764615..00000000 --- a/src/utils/tracking.js +++ /dev/null @@ -1,47 +0,0 @@ -/* global window */ -/* global CONFIG */ - -import ReactGA from 'react-ga'; - -const { GOOGLE_ANALYTICS_ID } = CONFIG; -const TRACKING_NAME = 'tracking'; - -/** - * init - Init Google Analytics tracking - * @param {string} userId - */ -export const init = (userId) => { - ReactGA.initialize([{ - trackingId: GOOGLE_ANALYTICS_ID, - gaOptions: { - name: TRACKING_NAME, - userId, - }, - }], { - alwaysSendToDefaultTracker: false, - }); -}; - -/** - * pageView - Track page view - */ -export const pageView = () => { - ReactGA.pageview(window.location.pathname - + window.location.search, [TRACKING_NAME]); -}; - -/** - * event - Add custom tracking event. - * @param {string} category - * @param {string} action - * @param {string} label - */ -export const event = (category, action, label) => { - ReactGA.event({ - category, - action, - label, - }, [TRACKING_NAME]); -}; - -export default undefined;