Added first round of analytics and event tracking BOD-190
This commit is contained in:
@@ -6,6 +6,7 @@ import { MUTATION_BACKORDER_PART_LINE } from "../../graphql/parts-orders.queries
|
||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
import { logImEXEvent } from "../../firebase/firebase.utils";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
bodyshop: selectBodyshop,
|
||||
@@ -26,6 +27,7 @@ export function PartsOrderLineBackorderButton({
|
||||
|
||||
const handleOnClick = async () => {
|
||||
setLoading(true);
|
||||
logImEXEvent("job_parts_backorder");
|
||||
|
||||
const result = await backorderLine({
|
||||
variables: {
|
||||
|
||||
Reference in New Issue
Block a user