Skip to main content

Setting up an Email Capture Campaign

Find out more about how to set up an email capture campaign to pass data to your CRM

Charley Bader avatar
Written by Charley Bader
Updated over a week ago

To set up the email capture template in the Campaign Manager, you'll need to pass submitted data to your CRM.

To do this you should modify the handleSubmit function to pass the submitted email address to your determined endpoint.

Below you can find a selection of reusable code snippets to drop into campaigns, based on our most popular integrations; Bloomreach, Klaviyo and Ometria.

If your CRM of choice isn't below, please get in touch with support or your Customer Success Manager.

Bloomreach

The following JS snippet will post a collected email address to the Bloomreach platform:

exponea.update({
email: <EMAIL>,
});

e.g. in a handleSubmit function:

const handleSubmit = function (email) {
exponea.update({
email: email,
});

// Optionally close the modal after submit
closeModal();
};

Bloomreach support additional parameters too. E.g.

exponea.update({ 
email: 'gordon.freeman@blackmesa.com',
first_name: 'Gordon',
last_name: 'Freeman',
company: 'Blackmesa',
...
});

Klaviyo

Klaviyo supports identifying users by passing their email address.

klaviyo.identify({
email: <EMAIL>,
});


e.g. in a handleSubmit function:

const handleSubmit = function (email) {
klaviyo.identify({
email: email,
});

// Optionally close the modal
closeModal();
};


Once a user has been identified, you can send additional properties to Klaviyo. For more information, see: https://developers.klaviyo.com/en/docs/javascript_api#identify-people

Ometria

Ometria supports identifying users by email address, e.g. as

ometria.identify("user@example.com");

In a handleSubmit function:

const handleSubmit = function (email) {
ometria.identify(email);

// Optionally close the modal after submit
closeModal();
};

Note that additional data passed in this call will only be saved to the profile 30 minutes after the session has completed.

For more information around tracking into Ometria from the client side see https://docs.ometria.com/docs/javascript-interaction-api

Did this answer your question?