Added first round of analytics and event tracking BOD-190
This commit is contained in:
@@ -10,6 +10,7 @@ import { createStructuredSelector } from "reselect";
|
||||
import { INSERT_TEMPLATE } from "../../graphql/templates.queries";
|
||||
import { selectBodyshop } from "../../redux/user/user.selectors";
|
||||
import { TemplateList } from "../../utils/TemplateConstants";
|
||||
import { logImEXEvent } from "../../firebase/firebase.utils";
|
||||
|
||||
const mapStateToProps = createStructuredSelector({
|
||||
//currentUser: selectCurrentUser
|
||||
@@ -34,6 +35,8 @@ export function ShopTemplateAddComponent({
|
||||
);
|
||||
|
||||
const handleAdd = async (item) => {
|
||||
logImEXEvent("shop_template_add");
|
||||
|
||||
const result = await insertTemplate({
|
||||
variables: {
|
||||
template: {
|
||||
|
||||
Reference in New Issue
Block a user