Added first round of analytics and event tracking BOD-190
This commit is contained in:
@@ -5,6 +5,7 @@ import React from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { useHistory, useLocation } from "react-router-dom";
|
||||
import { DELETE_TEMPLATE } from "../../graphql/templates.queries";
|
||||
import { logImEXEvent } from "../../firebase/firebase.utils";
|
||||
|
||||
export default function ShopTemplateDeleteComponent({ templateId, refetch }) {
|
||||
const { t } = useTranslation();
|
||||
@@ -13,6 +14,8 @@ export default function ShopTemplateDeleteComponent({ templateId, refetch }) {
|
||||
const [deleteTemplate] = useMutation(DELETE_TEMPLATE);
|
||||
|
||||
const handleDelete = async () => {
|
||||
logImEXEvent("shop_template_delete");
|
||||
|
||||
const result = await deleteTemplate({
|
||||
variables: {
|
||||
templateId: templateId,
|
||||
|
||||
Reference in New Issue
Block a user