diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-06-03 11:16:32 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-06-03 11:16:32 +0700 |
| commit | 0ee7434188364dc230bbd034dc165a0f4850e3db (patch) | |
| tree | d68059fb394f89ac0ad2887b25d49fcb7fd0d8d6 /src/lib/product/components/Product/ProductMobile.jsx | |
| parent | c89f620717483331534c4c8e7b1c9208799c2c11 (diff) | |
Add gtag event on product detail
Diffstat (limited to 'src/lib/product/components/Product/ProductMobile.jsx')
| -rw-r--r-- | src/lib/product/components/Product/ProductMobile.jsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/product/components/Product/ProductMobile.jsx b/src/lib/product/components/Product/ProductMobile.jsx index 426fe1b8..667a4ba1 100644 --- a/src/lib/product/components/Product/ProductMobile.jsx +++ b/src/lib/product/components/Product/ProductMobile.jsx @@ -14,6 +14,7 @@ import { toast } from 'react-hot-toast' import { createSlug } from '@/core/utils/slug' import BottomPopup from '@/core/components/elements/Popup/BottomPopup' import whatsappUrl from '@/core/utils/whatsappUrl' +import { gtagAddToCart } from '@/core/utils/googleTag' const ProductMobile = ({ product, wishlist, toggleWishlist }) => { const router = useRouter() @@ -85,6 +86,7 @@ const ProductMobile = ({ product, wishlist, toggleWishlist }) => { const handleClickCart = () => { if (!validAction()) return + gtagAddToCart(activeVariant, quantity) updateItemCart({ productId: activeVariant.id, quantity, |
