Skip to content

Commit 95e30ec

Browse files
committed
Changed price and value data to total transaction amount
1 parent dd86c26 commit 95e30ec

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/hooks/useSignup.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -552,12 +552,11 @@ const useSignup = () => {
552552
const adaptedItems = simplePlans.map((planObj) => ({
553553
item_id: planObj.plan.slug,
554554
item_name: planObj.plan.slug,
555-
price: selectedPlan?.price || 0,
555+
price: transactionData?.amount || 0,
556556
quantity: 1,
557557
item_category: 'subscription',
558558
subscription_period: selectedPlan?.period_label || 'one-time',
559559
}));
560-
console.log(transactionData, 'transactionData');
561560
reportDatalayer({
562561
dataLayer: {
563562
event: 'purchase',

0 commit comments

Comments
 (0)