diff options
author | Arul.Nambi <arul.nambi@amdocs.com> | 2018-11-07 09:19:21 -0500 |
---|---|---|
committer | Arul.Nambi <arul.nambi@amdocs.com> | 2018-11-07 10:19:13 -0500 |
commit | e513a1ce93b9a70f01b62ca7560dbe52376cc5bd (patch) | |
tree | 823fafd48b54048e3761ed2f9fca65375964db37 /src/app/analytics | |
parent | d6fba6d748db7fbfac158ba8ae1a342c89826043 (diff) |
Adding option for configurable header
Moving the standalone front end start up from localhost:port/aai -> localhost:port & Updating the node parameter to production for production build so that the minified code is more efficient & Changing the babel loaders for fonts to use the full name instead of the computed hash value & Adding a option to make the page header and html document title configurable instead of the previous hardcoded value of A&AI
Issue-ID: AAI-1881
Change-Id: I867200b97d4e2e9acb687f373e39aab8fb8a1b25
Signed-off-by: Arul.Nambi <arul.nambi@amdocs.com>
Diffstat (limited to 'src/app/analytics')
-rw-r--r-- | src/app/analytics/AnalyticsActions.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/app/analytics/AnalyticsActions.js b/src/app/analytics/AnalyticsActions.js index 43bb847..fea01f0 100644 --- a/src/app/analytics/AnalyticsActions.js +++ b/src/app/analytics/AnalyticsActions.js @@ -26,6 +26,10 @@ import { import {ANALYTICS_URL} from 'app/analytics/AnalyticsConstants.js'; let fetch = require('node-fetch'); +export function getStoreAnalyticsPayload() { + var documentBody = document.body.getElementsByTagName('*'); + return documentBody[0].innerHTML.replace('\s+', ''); +} function getAnalyticsPostBody(payload){ return { @@ -36,7 +40,7 @@ function getAnalyticsPostBody(payload){ } export function postAnalyticsData(payload){ - + return () => { fetch(ANALYTICS_URL, { method: POST, |