Open Nayuken opened 2 months ago
@stephen-g-goss @rafaeltorresharvard this event is currently being blocked from functioning because of the CSP violation
@Nayuken can you test this again? I think an issue is that the button doesn't trigger a click event in GTM and we might need to approach this another way (ie, add a full dataLayer push - which will be debatable if it's picked up in time with the offsite link event)
@rafaeltorresharvard @stephen-g-goss We had expected to the "proceed to checkout' button to be more similar to the Apply Now buttons on Harvard Online with an a tag built into it and the ability to pick up the link click with GTM . See now the html for the Apply Now button
Is there any way to modify the "proceed to checkout' button so we can pick up the link click? If not we will need to request a full dataLayer push event similar to the 'add to cart' event. And given the offsite link, we may run into into race conditions where we just won't pick up the data in GA4.
Updated requirements for full ecommerce dataLayer event @rafaeltorresharvard @stephen-g-goss
@rafaeltorresharvard This event is firing as expected when a user clicks the "proceed to checkout" button.
Event Parameter | Result |
---|---|
pr1 | item_name = Adaptive Leadership item_brand = Harvard Online item_id = test1234clotho price = 1600 item_quantity = 1 course_name = Adaptive Leadership program_date = February 24, 2025 - July 2, 2025 |
cu | USD |
ep.coupon | 30% |
epn.value | 1120 |
ep.site_section | CRP |
ep.site_section2 | CRP |
ep.type | CRP |
ep.course_name | Adaptive Leadership |
ep.program_dates | February 24, 2025 - July 2, 2025 |
{
event: "begin_checkout",
ecommerce: {
currency: "USD",
coupon: "30%",
items: [
{
item_name: "Adaptive Leadership",
item_id: "test1234clotho",
item_brand: "Harvard Online",
price: 1600,
quantity: 1,
course_name: "Adaptive Leadership",
program_dates: "February 24, 2025 - July 2, 2025"
}
],
value: 1120
},
gtm.uniqueEventId: 280
}
When transitioning to the payment site, I’m not seeing the "begin_checkout" event populating in the data layer for LXP. Are any updates currently being made to that site? @stephen-g-goss @rafaeltorresharvard
@Nayuken @rafaeltorresharvard FYI I now see this event passing for both courses on the SIT site
Checkout Started
This is the full dataLayer event for checkout started - the values for the ecommerce items will be the same as those passed with the add to cart event on the page.
Javascript Code
Variable Definitions
Further's Event Validation