APIs & Integrations

GLittle9
Participante | Parceiro Elite
Participante | Parceiro Elite

How to embed email subscription page

resolver

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?

 

 

0 Avaliação positiva
1 Solução aceita
Anton
Solução
Especialista reconhecido(a) | Parceiro Diamante
Especialista reconhecido(a) | Parceiro Diamante

How to embed email subscription page

resolver

Hi @GLittle9

Displaying the preference-center on a non-HS page isn't possible by default. iFraming could could lead to CORS errors

 

A way to go could be be: recreate a form with your subscription types, modify the embed code, 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

Anton Bujanowski Signature

Exibir solução no post original

8 Respostas 8
ZKralova
Membro

How to embed email subscription page

resolver

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?

0 Avaliação positiva
JLehmann
Participante

How to embed email subscription page

resolver

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

0 Avaliação positiva
ZKralova
Membro

How to embed email subscription page

resolver

Thank you @JLehmann for responding!

0 Avaliação positiva
Anton
Solução
Especialista reconhecido(a) | Parceiro Diamante
Especialista reconhecido(a) | Parceiro Diamante

How to embed email subscription page

resolver

Hi @GLittle9

Displaying the preference-center on a non-HS page isn't possible by default. iFraming could could lead to CORS errors

 

A way to go could be be: recreate a form with your subscription types, modify the embed code, 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

Anton Bujanowski Signature
Jaycee_Lewis
Gerente da Comunidade
Gerente da Comunidade

How to embed email subscription page

resolver

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

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

Jaycee_Lewis
Gerente da Comunidade
Gerente da Comunidade

How to embed email subscription page

resolver

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

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

GLittle9
Participante | Parceiro Elite
Participante | Parceiro Elite

How to embed email subscription page

resolver

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?

 

0 Avaliação positiva
JLehmann
Participante

How to embed email subscription page

resolver

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 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.