Remove user tracking.
This commit is contained in:
6
app.json
6
app.json
@@ -2,18 +2,18 @@
|
|||||||
"expo": {
|
"expo": {
|
||||||
"name": "imexmobile",
|
"name": "imexmobile",
|
||||||
"slug": "imexmobile",
|
"slug": "imexmobile",
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"orientation": "default",
|
"orientation": "default",
|
||||||
"icon": "./assets/logo192noa.png",
|
"icon": "./assets/logo192noa.png",
|
||||||
"ios": {
|
"ios": {
|
||||||
"supportsTablet": true,
|
"supportsTablet": true,
|
||||||
"bundleIdentifier": "com.imex.imexmobile",
|
"bundleIdentifier": "com.imex.imexmobile",
|
||||||
"buildNumber": "1.0.7",
|
"buildNumber": "1.0.8",
|
||||||
"googleServicesFile": "./GoogleService-Info.plist"
|
"googleServicesFile": "./GoogleService-Info.plist"
|
||||||
},
|
},
|
||||||
"android": {
|
"android": {
|
||||||
"package": "com.imex.imexmobile",
|
"package": "com.imex.imexmobile",
|
||||||
"versionCode": 7,
|
"versionCode": 8,
|
||||||
"googleServicesFile": "./google-services.json"
|
"googleServicesFile": "./google-services.json"
|
||||||
},
|
},
|
||||||
"splash": {
|
"splash": {
|
||||||
|
|||||||
@@ -1,15 +1,15 @@
|
|||||||
import * as Analytics from "expo-firebase-analytics";
|
import * as Analytics from "expo-firebase-analytics";
|
||||||
import { store } from "../redux/store";
|
//import { store } from "../redux/store";
|
||||||
|
|
||||||
export const logImEXEvent = (eventName, additionalParams, stateProp = null) => {
|
export const logImEXEvent = (eventName, additionalParams, stateProp = null) => {
|
||||||
const state = stateProp || store.getState();
|
//const state = stateProp || store.getState();
|
||||||
const eventParams = {
|
const eventParams = {
|
||||||
shop:
|
// shop:
|
||||||
(state.user && state.user.bodyshop && state.user.bodyshop.shopname) ||
|
// (state.user && state.user.bodyshop && state.user.bodyshop.shopname) ||
|
||||||
null,
|
// null,
|
||||||
user:
|
// user:
|
||||||
(state.user && state.user.currentUser && state.user.currentUser.email) ||
|
// (state.user && state.user.currentUser && state.user.currentUser.email) ||
|
||||||
null,
|
// null,
|
||||||
...additionalParams,
|
...additionalParams,
|
||||||
};
|
};
|
||||||
console.log(
|
console.log(
|
||||||
|
|||||||
@@ -52,25 +52,3 @@ export const updateCurrentUser = (userDetails) => {
|
|||||||
}, reject);
|
}, reject);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
// export const logImEXEvent = (eventName, additionalParams, stateProp = null) => {
|
|
||||||
// const state = stateProp || store.getState();
|
|
||||||
// const eventParams = {
|
|
||||||
// shop:
|
|
||||||
// (state.user && state.user.bodyshop && state.user.bodyshop.shopname) ||
|
|
||||||
// null,
|
|
||||||
// user:
|
|
||||||
// (state.user && state.user.currentUser && state.user.currentUser.email) ||
|
|
||||||
// null,
|
|
||||||
// ...additionalParams,
|
|
||||||
// };
|
|
||||||
// console.log(
|
|
||||||
// "%c[Analytics]",
|
|
||||||
// "background-color: green ;font-weight:bold;",
|
|
||||||
// eventName,
|
|
||||||
// eventParams
|
|
||||||
// );
|
|
||||||
// Analytics.logEvent(eventName, eventParams);
|
|
||||||
// };
|
|
||||||
|
|
||||||
//export const ExpoAnalytics = Analytics;
|
|
||||||
|
|||||||
Reference in New Issue
Block a user