Added google analytics tracking.

This commit is contained in:
Patrick Fic
2021-03-09 17:03:19 -08:00
parent 3e1dd78c85
commit b5176b4d61
12 changed files with 163 additions and 10 deletions

View File

@@ -5,6 +5,7 @@ import { useTranslation } from "react-i18next";
import { View } from "react-native";
import { connect } from "react-redux";
import { createStructuredSelector } from "reselect";
import { logImEXEvent } from "../../firebase/firebase.utils";
import { QUERY_ALL_ACTIVE_JOBS } from "../../graphql/jobs.queries";
import { setCameraJob, setCameraJobId } from "../../redux/app/app.actions";
import { selectCurrentCameraJobId } from "../../redux/app/app.selectors";
@@ -48,6 +49,7 @@ export function CameraSelectJob({
<Picker
selectedValue={cameraJobId}
onValueChange={(value, idx) => {
logImEXEvent("imexmobile_setcamerajobid");
setCameraJobId(value);
setCameraJob(data.jobs[idx]);
}}