Promo reporting
Promo reporting connects campaign activity to checkout outcomes.
What to inspect
- participant reference such as
pf_ref - first seen and last seen times
- active tier when the visitor clicked
- countdown or CTA surface
- offer opened from the promo
- invoice and purchase outcome
Track participant references
Use pf_ref in email and campaign links.
<a href="https://acme.plandalf.dev/p/black-friday?pf_ref={{subscriber.email}}">
View the offer
</a>Observe purchase events
const handle = plandalf.present("summit-ticket", {
promo: "early-bird"
});
for await (const event of handle.events) {
if (event.type === "purchase") {
console.log(event.invoice_total, event.currency);
}
}