(() => { window.addEventListener('message', m => { if (m.origin === "https://embed.tapkat.org" && m.data.type === "tapkat:donation") { window?.gtag('event', 'purchase', { event_category: 'sweepstakes', event_label: 'donation', value: m.data.value, currency: m.data.currency, transaction_id: m.data.transactionId, coupon: m.data.coupon, items: [ { item_id: m.data.donationLevelId, item_name: m.data.value + " Donation", } ], }); } }, false); })()