Skip to main content

Analytics events sent

Lokl Pay pushes events to the dataLayer object, which means that if your website uses either Google Tag Manager or Google Analytics, the events described in this guide will be automatically pushed when they occur.

On successful payments

When a payment has been successful, one of the following events will be pushed onto the dataLayer object.

Recurring payments.

When someone has signed onto a recurring payment, this event will fire:

{
'event': 'bli manadsgivare',
'gavoinfo': {
'andamal': pledgedGift.val,
'belopp': finalAmountToPay,
'betalmetod': paymentType
}
}

One time payment

{
'event': 'engangsgava',
'gavoinfo': {
'andamal': pledgedGift.val,
'belopp': finalAmountToPay,
'betalmetod': paymentType
}
}

Gift card

{
'event': 'gebort-gava',
'gavoinfo': {
'andamal': pledgedGift.val,
'belopp': finalAmountToPay,
'betalmetod': paymentType
'bevistyp': post_title
}
}