summaryrefslogtreecommitdiffstats
path: root/src/app/analytics/AnalyticsActions.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/analytics/AnalyticsActions.js')
-rw-r--r--src/app/analytics/AnalyticsActions.js6
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,