Skip to main content

Email Service Providers (ESPs)

You may already have a large pool of identified users in your email service provider (ESP). Depending on how you implement ATS for Web (with direct or detect mode), you can enable ATS to leverage these identifiers. In this article, you will learn how to send identifiers in your ESP to ATS.js for direct mode or detect mode.

To learn more about the different modes of ATS for Web implementation, see Configure How Identifiers Are Obtained.

Tip

Are you working with a provider that is not listed in this article? Contact your LiveRamp representative to receive help.

Send Identifiers From ESPs With Direct Mode

If you send identifiers using direct mode, you must update your call to the ATS library. When a user clicks on a link in a newsletter, you must create a local storage or a first-party cookie containing the hashed email of the user. You can then provide the storage or cookie name when passing the identifiers to the ATS script. See how it's done below.

For local storage:

ats.setAdditionalData({
   'type': 'emailHashes',
   'id': [
     localStorage.<storage_name>
   ]
})

For first-party cookie:

window.addEventListener('envelopeModuleReady', ()=>{
            atsenvelopemodule.setAdditionalData({
                'type': 'emailHashes',
                'id': [<cookie_name>]
            })
        })

Send Identifiers From ESPs Using Detect Mode

If you are implementing ATS for Web using detect mode, you must modify your standard newsletters or transactional emails to pass an identifier when users click through to visit your site. The overall process consists of two parts:

  1. Modify the link in your email campaign

  2. Configure envelope settings in Console

Tip

Email Newsletters vs. Direct Login

It's always best to leverage direct logins from your users. This gives the best transparency into what data are being processed on their behalf and also ensures that you have the correct user identity, as emails can be forwarded to individuals other than the original recipient.

Step 1: Modify the Link in Your Email Campaign

In your email campaign body, you must insert a new link or modify an existing one that your users will click by adding a macro.

Warning

Hashing Requirements for EU Users

Make sure to obtain hashed emails for users in the EU in compliance with GDPR. Some ESPs such as Sailthru provide macros that automatically generate hashed emails for you. Otherwise, you must create a custom field at the audience level and add it to the link your users will click.

  1. Add a query parameter for the email address (e.g. user_id). If there are multiple parameters in your newsletter's URL (for example; adding UTMs for analytics purposes), add & before the parameter: &user_id.

    If you are only using LiveRamp's parameter to call the hashed email, or if the parameter is the first one to be called, add ? before the parameter: ?user_id.

  2. Based on the ESP you are using, add the relevant macro to represent the user's email address after the query parameter. In the example below, we are adding the [email] macro.

    https ://authenticated-traffic-solution.com?user_id=[email]

    Tip

    Some ESPs such as Iterable accommodate custom parameters in their advanced settings.

  3. Save your link and finish creating your email template or broadcast.

When you send the email in production, the macro will be populated with the recipient's email.

Refer to the table below to view the macro you need to add to the link based on the ESP.

ESP

Macro

Example

AWeber

PP-ESPs_AWeber.png

{!email}

https ://authenticated-traffic-solution.com?e={!email}

blueshift

PP-ESPs_blueshift.png

{{user.email}}

https ://authenticated-traffic-solution.com?email={{user.email}}

Campaign Monitor

PP-ESPs_Campaign_Monitor.png

[email]

https ://authenticated-traffic-solution.com?user_id=[email]

ConvertKit

PP-ESPs_ConvertKIt.png

{{ subscriber.email_address }}

https ://authenticated-traffic-solution.com?user_id={{ subscriber.email_address }}

ExactTarget

PP-ESPs_ExactTarget.jpeg

%%emailaddr%%

%%=SHA256(LOWERCASE(TRIM(emailaddr)))=%%

Iterable

PP-ESPs_Iterable.png

Learn more about their custom link parameters here.

Klaviyo

PP-ESPs_Klaviyo.png

{{ email }} (no query parameters needed)

www.example.com/{{ email }}

mailchimp

PP-ESPs_mailchimp.png

*|EMAIL|*

https ://authenticated-traffic-solution.com?user_id=*|EMAIL|*

Sailthru

PP-ESPs_Sailthru.png
  • {sha256(email)}

  • {sha1(email)}

  • {md5(email)}

  • https ://authenticated-traffic-solution.com?user_email={sha256(email)}

  • https://authenticated-traffic-solution.com?user_email={sha1(email)}

  • https://authenticated-traffic-solution.com?user_email={md5(email)}

Tip

Updating Sailthru Newsletter Templates in Bulk

Currently, Sailthru does not support updating newsletter templates in bulk. As a work-around, we reccommend you call Sailthru's template API endpoint and follow the steps below.

Endpoint URL: https://api.sailthru.com/template

  1. Make a GET request to the template API endpoint with an empty request body. This will return a list of all templates in your account. Note each of the "template_id" value which is required for the next step.

  2. For each template, make a GET request to the template API endpoint with the following payload:

    {"template_id": <template_id value from previous step>}
  3. The API response will include the complete metadata for the template. Automatically appended link parameters will appear as a set of key/value pairs under "link_params", with the key being the parameter name and value being the parameter value. Add any additional link parameters you wish to include to this object. {e.g. "user_email": "{email}"}.

  4. Make a POST request to the template API endpoint using the JSON object modified in step 3 as the request body. This will update the template.

Step 2: Configure the Settings in Console

Now, you need to configure ATS.js in Console to detect and resolve email addresses passed through the ESP.

  1. From Console, select the "ATS" tab in the navigation menu.

  2. Select the "Web" tab.

  3. Click on the name of the desired configuration.

  4. Select the "Obtain Identifier" tab in the navigation menu.

  5. Select Detect Mode (or Direct & Detect) as your Operation Mode.

  6. In the Obtain the Identifier Using drop-down, select "URL Detection".

  7. Fill in the URL Parameters field with the query parameter you added in Step 1, e.g. user_id.

  8. Click Advanced and select "Email" for the Detection Subject.

  9. Select the "Envelope Settings" tab in the navigation menu.

  10. In the Envelope Storage area, select "Local Storage" or "Cookie".

  11. Click Publish.

  12. Send a test email to yourself to confirm that everything is working as expected.