Amelia Event Registration GTM Event Listener
Track Amelia WordPress event registration interactions in GTM. Monitor event views, attendee selection, and confirmed registrations with ameliaEvent and ameliaData variables.
ameliawordpresseventsregistrationbookinggtmga4
Event fired
ameliaActivityKey variable
ameliaEventAmelia Event Registration Form
Overview
Amelia's event registration feature handles multi-attendee event bookings, conferences, workshops, webinars. This listener tracks the registration funnel from event view to confirmed booking.
Event fired: ameliaActivity
Variables: ameliaEvent, ameliaData
Common Use Cases
- Track event registrations as GA4 conversions
- Measure event registration funnel drop-off
- Fire Google Ads conversion tags on event sign-up
- Build audiences from event registrants for follow-up
Tracked Events
| ameliaEvent | Description |
|---|---|
event viewed | User views event details |
attendees selected | Ticket quantity chosen |
registration started | Checkout begins |
registration confirmed | Event booking complete |
registration failed | Booking attempt failed |
Installation
html
<!-- GTM Custom HTML Tag: Amelia Event Registration Listener -->
<script>
(function() {
function ameliaEventPush(eventType, data) {
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
'event': 'ameliaActivity',
'ameliaEvent': eventType,
'ameliaData': data || {}
});
}
document.addEventListener('ameliaEventViewed', function(e) {
var d = e && e.detail;
ameliaEventPush('event viewed', {
eventId: d && d.eventId,
eventName: d && d.eventName,
eventDate: d && d.eventDate,
eventPrice: d && d.price
});
});
document.addEventListener('ameliaEventRegistrationSuccess', function(e) {
var d = e && e.detail;
ameliaEventPush('registration confirmed', {
bookingId: d && d.bookingId,
eventId: d && d.eventId,
eventName: d && d.eventName,
attendees: d && d.attendees,
totalPrice: d && d.totalPrice,
customerEmail: d && d.customerEmail
});
});
document.addEventListener('ameliaEventRegistrationError', function(e) {
ameliaEventPush('registration failed');
});
})();
</script>Data Layer Output
Registration Confirmed
json
{
"event": "ameliaActivity",
"ameliaEvent": "registration confirmed",
"ameliaData": {
"bookingId": "booking_456",
"eventId": "event_001",
"eventName": "Digital Marketing Workshop",
"attendees": 2,
"totalPrice": "150.00",
"customerEmail": "attendee@example.com"
}
}Triggers to Create
| Trigger | Event | Condition |
|---|---|---|
| CE – Amelia Event Registered | ameliaActivity | ameliaEvent = registration confirmed |
| CE – Amelia Event Viewed | ameliaActivity | ameliaEvent = event viewed |
Variables to Capture
| Variable Name | DL Key | Example |
|---|---|---|
| DLV – Amelia Event Type | ameliaEvent | "registration confirmed" |
| DLV – Amelia Event Data | ameliaData | Object |
| DLV – Amelia Event Name | ameliaData.eventName | "Digital Marketing Workshop" |
| DLV – Amelia Attendees | ameliaData.attendees | 2 |
GA4 Mapping
| GA4 Event | Trigger | Parameters |
|---|---|---|
sign_up | registration confirmed | method: "amelia_event", event_id |
purchase | registration confirmed | value, items, transaction_id |
view_item | event viewed | item_name, price |