diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2023-06-16 10:10:25 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2023-06-16 10:10:25 +0700 |
| commit | a235f77530f0f51b3637b4b1096552fe3058ed69 (patch) | |
| tree | c3634c3aa5f6e858189a996178bc383add650aa4 /src/lib/checkout/components | |
| parent | 857ba27d9df9361fb0e8f4b77004e8c9a2b86110 (diff) | |
Add gtag begin_checkout and purchase event
Diffstat (limited to 'src/lib/checkout/components')
| -rw-r--r-- | src/lib/checkout/components/Checkout.jsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/checkout/components/Checkout.jsx b/src/lib/checkout/components/Checkout.jsx index 525a641b..07d9acb6 100644 --- a/src/lib/checkout/components/Checkout.jsx +++ b/src/lib/checkout/components/Checkout.jsx @@ -22,8 +22,8 @@ import DesktopView from '@/core/components/views/DesktopView' import ExpedisiList from '../api/ExpedisiList' import whatsappUrl from '@/core/utils/whatsappUrl' import { createSlug } from '@/core/utils/slug' -import { Button, Modal } from 'flowbite-react' import BottomPopup from '@/core/components/elements/Popup/BottomPopup' +import { gtagPurchase } from '@/core/utils/googleTag' const SELF_PICKUP_ID = 32 @@ -233,6 +233,8 @@ const Checkout = () => { return } + gtagPurchase(products, biayaKirim, isCheckouted.name) + const midtrans = async () => { for (const product of products) deleteItemCart({ productId: product.id }) const payment = await axios.post( |
