Apply Promotion Code

When a user enters a promotion code during the checkout process on your website, it signifies their engagement with discounts or promotions.

web_event.track("promotion_code", "used", {
    items: [
        {
            type: "promotion_code",
            id: "{{promotion_code}}",
            name: "{{promotion_code}}",
            code_status: 4
        },
    ],
    dims: {
        customers: {
            customer_id: "{{customer_id}}",
            name: "{{customer_name}}",
            email: "{{customer_email}}",
            phone: "{{customer_phone}}",
            cdp_source: "Staging" // Staging/Production
        },
        transaction: {
            id: "{{order_id}}"
        }
    },
    extra: {
        cdp_property_id: "{{cdp_property_id}}"
    },
});

Please contact our supports team to have the value of the {{cdp_property_id}}

Last updated