# Set up Zenloop Survey via ESP

## **Set Up your zenloop Survey**

* Go to the Collect Page in Zenloop, and choose Email Embed.
* Follow [these steps](https://support.zenloop.com/de/articles/846117-setting-up-email-embedded-channel) to set-up your zenloop Email survey.
* Customise your survey styling using zenloop’s Survey Editor. For more information, [click here](https://support.zenloop.com/de/articles/5520444-customising-your-survey).
* Click next to go the the **Implement** Step.
* Set the Email Marketing Platform as Custom.
* copy the HTML code snippet to use in CrossEngage.

<figure><img src="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2FqDcco7LYghrgCJ2AKFYC%2FZenloop_EmbedEmail.png?alt=media&#x26;token=0a2d8a75-b2a6-40e7-b253-d1836c1b72a6" alt=""><figcaption></figcaption></figure>

* Setup a campaign in CrossEngage using an email integration and add the HTML code you copied in Step 4.

<figure><img src="https://985110910-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0Hio8LJewN8lQY2Vlqy0%2Fuploads%2FrlE6nCThpVVDU3GLTbMP%2FCampaigns_Messages_ZenloopESP.png?alt=media&#x26;token=e2a53f9d-cbc2-465c-a948-d0a71a51564d" alt=""><figcaption></figcaption></figure>

* In order to attach Recipient Identities & [Properties](https://support.zenloop.com/de/articles/825164-choosing-your-properties), you must alter each URL in the code (there can be up-to 11, depending on the scale being used) using handlebars. The links must be changed as follows. For more information, see the Zenloop documentation [here](https://support.zenloop.com/de/articles/844530-adding-recipient-identities-and-properties-to-email-embedded-survey).

```
https://responses.zenloop.com/web/response/[Survey-Hash-ID]/email_embed/10?is_a_test=false&identity={{user.[traits.externalId]}}&identity_type=custom&first_name={{user.[traits.firstName]}}&last_name={{user.[traits.lastName]}}&properties[ce_externalId]={{user.[traits.externalId]}}
```

{% hint style="info" %}
You can see the Hash ID for your Zenloop Surveys in Settings -> zenAPI.
{% endhint %}

* Activate and run your Campaign.
