Reach iconUse Triggers with Episerver Campaign

This topic shows how to connect Triggers to Episerver Campaign.

Connect to Episerver Campaign

A Recipient list authorization code creates a connection between Episerver Campaign and the Episerver Personalization Portal and adds triggerFireId to a user’s entry in the recipient list.

Contact Episerver to set up Triggers, and extend your recipient list with a triggerFireId, and state that the list needs one of the following as the primary key:
  • hasheduserid. If you use hashed email addresses.
  • email. If you use plain-text, non-hashed email addresses.

To retrieve the authorization code, use the following steps:

  1. In Episerver Campaign, from the main menu, go to Administration > API overview.
  2. Select Recipient lists to show its table.
  3. Select your recipient list from the table.
  4. Click Manage authorization codes.
  5. From the Manage Authorization Codes view, copy the authorization code.
  6. Paste the authorization code into the Personalization Portal, on the Triggers > New campaign > ESP connections page.
  7. Enter the connection name.
  8. Select Episerver Campaign as the name of your ESP.
  9. Click Test ESP connection.
  10. If the connection was successful, click Save ESP connection.

Link to a specific basket

Episerver can integrate links from an email recommendation to a particular basket of the recipient. To enable this feature, contact customer service.

For developer information, see Link to a specific basket on Episerver World.

Send triggered emails

To send messages using Triggers directly to users, set up your Episerver mailing campaign in the Episerver Campaign portal, then create a send-message action in Episerver Triggers.

Set up an email campaign in Episerver

The following procedure shows how to generate HTML code to copy from Episerver Mail into a mailing in the Episerver Campaign portal.

  1. In the Personalization portal, go to Mail > Campaigns.
  2. Select and open your Mail campaign.
  3. Go to the HTML and preview tab.
  4. Select Episerver as the Email service provider.
  5. Click Generate code.
  6. Copy the HTML code displayed in the window.
  7. Go to Episerver Campaign.
    To create a new mailing in Episerver Campaign, go to Campaigns > Transactional emails and following the instructions in Transactional emails in the Episerver Campaign User Guide.
  8. From the main menu, go to Campaigns > Transactional emails.
  9. Select your email campaign.
  10. Click Edit.
  11. In the flow diagram that opens, click the campaign and click Edit (pencil icon).
  12. Click Edit content.
  13. In the editor, add or find the Source Code paragraph where you want to insert the Episerver recommendations. In the following image, a separate Text/Image paragraph was added above for the heading “Recommendation Paragraph”.
  14. Click Source code.
  15. Paste the HTML code (copied in step 6) into the right-hand panel:
  16. Click Apply.

Create a send-message action

To send messages using Triggers directly to users, you need to provide the Mailing ID of the Episerver mailing campaign on the Triggers ESP action page. You can retrieve the Mailing ID by following these steps:

  1. In Episerver Campaign from the main menu, go to Campaigns > Transactional emails.
  2. Copy the Mailing ID for your campaign from the ID column.
  3. In the Personalization Portal, go to Triggers > New campaign > ESP actions page and paste the Mailing ID.
    1. ESP action name. Enter the action name.
    2. ESP connection. Select the connection that you created earlier.
    3. ESP action type. Select Send message.
    4. Mailing ID. Enter the campaign Mailing ID.
    5. Test ESP action. Enter the email address of the email recipient and click Test ESP action.
  4. If the test is successful, click Save ESP action.

Create an Add user to group action

  1. In the Personalization Portal, go to Triggers > New campaign > ESP actions page.
    1. ESP action name. Enter the action name.
    2. ESP action type. Select Add user to group.
    3. ESP connection. Select the connection that you created earlier.
    4. Language. Enter the language code (such as en, de, sv) of the user. The language code configures email campaigns that feed the products into the email with the correct currency for each language, and ensures the titles are displayed in the correct language and the prices are in the correct currency. For ambiguous language codes, such as English (which can have different currencies in the US and UK, for example), Episerver Campaign performs an additional check on the user information to use the correct currency.
    5. Test ESP action. Enter the email address of the user and click Test ESP action.
  2. If the test is successful, click Save ESP action.

Create a Remove user from group action

  1. In the Personalization Portal, go to Triggers > New campaign > ESP actions page.
    1. ESP action name. Enter the action name.
    2. ESP action type. Select Remove user from group.
    3. ESP connection. Select the connection that you created earlier.
    4. Test ESP action. Enter the email address of the user and click Test ESP action.
  2. If the test is successful, click Save ESP action.




Help topics   Need help?   FAQs   Glossary   Site map   Videos

Episerver User Guide 18-6 | Released: 2018-12-03 | © Episerver 2018 | Send feedback to us