Skip to main content

Integrating Loyoly with ActiveCampaign

Connect Loyoly to ActiveCampaign to sync your loyalty data and trigger your automations.

Written by Oussama Guessous

Introduction

Connect ActiveCampaign to Loyoly to sync your customers' loyalty data and trigger your automations based on their actions: completed missions, redeemed rewards, referrals, VIP tier changes. 🚀


Before you start

If you don't have an ActiveCampaign account yet, you can create one here.

Three things need to be ready in your ActiveCampaign account before you start the connection:

  1. Your API credentials: go to Settings → Developer. You'll find your URL (in the form https://youraccount.api-us1.com) and your API key.

  2. Your list IDs: get the ID of the list where you manage your email contacts, and the ID of your SMS list. The ID appears in the list's URL, from Contacts → Lists.

  3. Event Tracking: go to Settings → Tracking → Event Tracking and turn it on. Without it, Loyoly events can't be used as triggers in your automations.

💡 If you have already connected ActiveCampaign, go straight to the email setup guide. It lists the recommended automations along with example email bodies for each of them.


How to connect ActiveCampaign to Loyoly

Unlike Klaviyo, the connection doesn't happen through a redirect: you enter your API credentials in the Loyoly back-office.

  1. Go to the ActiveCampaign integration page in your Loyoly back-office (Integrations section). The Connect Loyoly to ActiveCampaign screen opens.

  2. Fill in the four fields:

    • API Key: your ActiveCampaign API key.

    • Domain (URL): your account URL, in the form https://youraccount.api-us1.com.

    • SMS List ID: the ID of your SMS list.

    • Email List ID: the ID of your email list.

  3. Click Connect. Loyoly runs a verification call: if the credentials are invalid, an error message appears and the connection isn't saved.

Well done! ActiveCampaign is now connected to Loyoly 🌟

Once connected, the page displays the connection status and date. You'll also find controls to turn the sync on or off, and a disconnect button that deletes the stored credentials.


What happens when you connect

As soon as the integration is validated, Loyoly automatically performs three operations:

  • Custom field creation: Loyoly properties are created in your ActiveCampaign account if they don't exist yet. You don't need to create anything manually.

  • Test events: Loyoly events are triggered once so they show up in ActiveCampaign's list of available events.

  • Initial sync: the loyalty data of all your existing contacts is transferred to ActiveCampaign. Contacts are matched by email address.

💡 Keep in mind that depending on how many customers you have, the data sync can take several hours.


Which properties are synced with ActiveCampaign

So you can personalize your emails and segment your contacts, Loyoly syncs the following custom fields on every ActiveCampaign contact:

  • Customer point balance (Loyoly_Point_Balance): the points the customer can use right now.

  • Referral ID (Loyoly_Referral_Id): the customer's unique referral identifier.

  • Customer missions count (Loyoly_Missions_Count): the number of missions they have completed.

  • Customer rewards count (Loyoly_Rewards_Count): the total number of rewards the customer has claimed.

  • Customer referrals count (Loyoly_Referrals_Count): the number of referrals made by the customer.

  • Customer VIP tier name (Loyoly_Tiers_Name): the tier the customer belongs to. It only shows if the customer is in a tier, and updates as soon as they move to another one.

  • Customer birthdate (Loyoly_Birthdate): usually used for birthday rewards.

Tip: in the ActiveCampaign email editor, use the %FIELD_NAME% syntax (for example %LOYOLY_POINT_BALANCE%) to insert a custom field value into your template.


Consent sync

Loyoly updates your contacts' subscription status in the ActiveCampaign lists you entered at connection:

  • A customer who is opted in on Loyoly is subscribed to the matching list.

  • A customer who is opted out on Loyoly is unsubscribed from it.

The update happens during the initial sync, then every time consent changes on the Loyoly side.


What's next?

Unlike Klaviyo, no automation is pre-installed in your account: you build them yourself from Loyoly events. Head over to our guide Set up your emails with ActiveCampaign for the list of recommended automations, the events to select as triggers, and example subject lines and email bodies.


Frequently asked questions

Loyoly triggers don't show up in my automations, what should I do?

First check that Event Tracking is enabled in your ActiveCampaign account (Settings → Tracking → Event Tracking). Events only appear in ActiveCampaign's list once they have been triggered at least once. If the issue persists after enabling it, contact our support: a resync can be run to force the triggers to be created.

The Loyoly custom fields are there, but no events are coming through.

These are two separate mechanisms: custom fields go through the contacts API, events go through Event Tracking. If the fields sync but the events don't, Event Tracking is most likely not enabled in your account.

Do I need to create the custom fields in ActiveCampaign before connecting?

No. Loyoly creates them automatically if they're missing at connection time.

Where do I find an ActiveCampaign list ID?

From Contacts → Lists, open the list you need: its ID appears in the page URL.

Did this answer your question?