# How to embed email subscription page

**URL:** <https://community.hubspot.com/t/how-to-embed-email-subscription-page/63683>\
**Category:** APIs & Integrations\
**Tags:** email\
**Created:** [August 24, 2022, 8:54pm UTC](https://community.hubspot.com/t/how-to-embed-email-subscription-page/63683 "2022-08-24T20:54:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![GLittle9](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/glittle9/32/23393_2.png) [@GLittle9](https://community.hubspot.com/u/GLittle9)\
**Post date:** [August 24, 2022, 8:54pm UTC](https://community.hubspot.com/t/how-to-embed-email-subscription-page/63683/1 "2022-08-24T20:54:38Z")

</div>

I have an external site that is integrated with Hubspot via SSO.

How can I display the email subscriptions page in that site? Presumably I’d need to use an iframe. What URL would I use to view it?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [August 25, 2022, 10:17pm UTC](https://community.hubspot.com/t/how-to-embed-email-subscription-page/63683/2 "2022-08-25T22:17:51Z")

</div>

Hi, @GLittle9 👋 Thanks for the interesting question. Hey, @Anton @Jnix284 @SJaeger, have you pulled this one off in past projects? I wonder if this falls under _not possible_ due to the nature of how that link is generated.

It’s been a minute since I really messed with this page type, but my gut says the page is the “same”, but part of the URL is _dynamic_ or _unique_ for each contact. Does that sound correct?

Thanks for taking a look! — Jaycee

---

<div class="post-metadata">

**Author:** ![GLittle9](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/glittle9/32/23393_2.png) [@GLittle9](https://community.hubspot.com/u/GLittle9)\
**Post date:** [August 25, 2022, 11:28pm UTC](https://community.hubspot.com/t/how-to-embed-email-subscription-page/63683/3 "2022-08-25T23:28:22Z")

</div>

We are exploring going with a two-prong approach where we will use the ‘normal’ subscription page and customize it to look as we need it. That is what will be linked to from emails, as usual.

Then for our external page, we’ll use the API (/communication-preferences/v3/definitions) to get the list of possible subscriptions (in the order as they are defined) and display them on our page. And use the API to get the subscription choices of the current user (known by their email). This external page will then that API to subscribe/unsubscribe the subscriptions that the user chooses.

Does that sound reasonable?

---

<div class="post-metadata">

**Author:** ![JLehmann](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@JLehmann](https://community.hubspot.com/u/JLehmann)\
**Post date:** [September 9, 2022, 2:25pm UTC](https://community.hubspot.com/t/how-to-embed-email-subscription-page/63683/4 "2022-09-09T14:25:00Z")

</div>

This sounds reasonable up to the point contacts try to **resubscribe** to any given subscription type. To my knowledge this does not work via workflows or API. [The documentation](https://developers.hubspot.com/docs/api/marketing-api/subscriptions-preferences) says the following about this:

“_The subscribe contact endpoint allows you to subscribe an email address to any given subscription type in an account, but will not allow you to resubscribe contacts who have opted out._”

This creates a dilemma i would be very keen to find a solution for.

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [August 25, 2022, 10:17pm UTC](https://community.hubspot.com/t/how-to-embed-email-subscription-page/63683/5 "2022-08-25T22:17:53Z")

</div>

Hi, @GLittle9 👋 Thanks for the interesting question. Hey, @Anton @Jnix284 @SJaeger, have you pulled this one off in past projects? I wonder if this falls under _not possible_ due to the nature of how that link is generated.

It’s been a minute since I really messed with this page type, but my gut says the page is the “same”, but part of the URL is _dynamic_ or _unique_ for each contact. Does that sound correct?

Thanks for taking a look! — Jaycee

---

<div class="post-metadata">

**Author:** ![Anton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/anton/32/103167_2.png) [@Anton](https://community.hubspot.com/u/Anton)\
**Post date:** [August 26, 2022, 7:37am UTC](https://community.hubspot.com/t/how-to-embed-email-subscription-page/63683/6 "2022-08-26T07:37:29Z")

</div>

Hi @GLittle9,

Displaying the preference-center on a non-HS page isn’t possible by default. iFraming could could lead to [CORS errors](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors).

A way to go could be be: recreate a form with your subscription types, [modify the embed code](https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options), create one (or multiple) workflow(s) to have the same functionality as the regular preference-center and embed this form on your external page.

Hope this helps

best,

Anton

---

<div class="post-metadata">

**Author:** ![ZKralova](https://avatars.discourse-cdn.com/v4/letter/z/6bbea6/32.png) [@ZKralova](https://community.hubspot.com/u/ZKralova)\
**Post date:** [October 26, 2023, 8:49am UTC](https://community.hubspot.com/t/how-to-embed-email-subscription-page/63683/7 "2023-10-26T08:49:18Z")

</div>

Hi @GLittle9 and @JLehmann , we are currently experiencing the same issue, wanting to embed the subscription preference link from HubSpot to external email software. I was wondering whether you were successful in finding the solution to this?

---

<div class="post-metadata">

**Author:** ![JLehmann](https://avatars.discourse-cdn.com/v4/letter/j/858c86/32.png) [@JLehmann](https://community.hubspot.com/u/JLehmann)\
**Post date:** [October 27, 2023, 2:03pm UTC](https://community.hubspot.com/t/how-to-embed-email-subscription-page/63683/8 "2023-10-27T14:03:16Z")

</div>

Hi there, unfortunately I have not found a solution yet (and given the blockers we know it hasn’t been a priority anymore).

---

<div class="post-metadata">

**Author:** ![ZKralova](https://avatars.discourse-cdn.com/v4/letter/z/6bbea6/32.png) [@ZKralova](https://community.hubspot.com/u/ZKralova)\
**Post date:** [October 27, 2023, 3:18pm UTC](https://community.hubspot.com/t/how-to-embed-email-subscription-page/63683/9 "2023-10-27T15:18:35Z")

</div>

Thank you @JLehmann for responding!
