Hi community,
I have a client who does not run an Ecommerce website but they do sell gift cards and are interested in capturing the purchase price of each transaction into Piwik Pro, perhaps as a custom dimension. Here’s what the data layer contains with “totalAmount” being the field they want to capture into PP. Any thoughts??
{
event: “gtm.historyChange-v2”,
gtm: {
uniqueEventId: 141,
start: 1764170069581,
scrollThreshold: 90,
scrollUnits: “percent”,
scrollDirection: “vertical”,
triggers: “37”,
priorityId: 7,
element: “HTMLButtonElement: section.p-4 > button.button.is-prima” +
“ry.is-block.is-fullwidth.has-text-centered#submit-button”,
elementClasses: “button is-primary is-block is-fullwidth has-text” +
“-centered”,
elementId: “submit-button”,
elementTarget: “”,
elementUrl: “”,
historyChangeSource: “pushState”,
oldUrlFragment: “/booking/select-my-cart”,
newUrlFragment: “/booking/thanks”,
oldHistoryState: {idx: 4, usr: null, key: “7p937xbn”},
newHistoryState: {
usr: {
order: {
id: 2025330121810,
status: “COMPLETE”,
taxAmount: 0,
totalAmount: 1,
dueInSalon: 0,
dueToday: 1,
amountLeft: 0,
items: {
services: ,
giftCards: [
{
id: 6751902,
promotionalDiscountAmount: 0,
postOrEmail: “EMAIL”,
amount: 1,
toName: “David”,
fromName: “David Scott Culbertson”,
toEmailAddress: “davidsculbertson@gmail.com”,
fromEmailAddress: “davidsculbertson@gmail.com”,
deliverOn: “2025-11-26”,
message: “Enjoy your gift!”,
isBonus: false
}
]
},
payments: {
giftCards: ,
creditCards: [
{
id: 7072075,
amount: 1,
cardType: “VI”,
accountNumber: “************2467”
}
]
}
}
},
key: “3q0nx6pf”,
idx: 5
},
oldUrl: “ Online Booking - Powered by SalonBiz ,
newUrl: “ Online Booking - Powered by SalonBiz
},
page: {
title: “Online Booking - Powered by SalonBiz - Thanks!”,
url: “ Online Booking - Powered by SalonBiz +
“booking/thanks”
},
eventCallback: “Function”