Ho recentemente installato iubenda nel mio sito costruito con wordpress e ho notato che va in contrasto con i form di Hubspot incorporati tramite <script>.
C'è una soluzione?
Grazie
Importato da support.iubenda.com (topic #42000306691) ·
2 upvote su Freshdesk ·
826 visualizzazioni
Hi, please check here: https://www.iubenda.com/en/help/153445-what-to-do-when-the-automatic-blocking-mode-is-blocking-too-much#hubspotforms
If you’re experiencing issues with HubSpot Forms not being released after consent with autoblocking, consider the following solutions:
- Ensure that HubSpot scripts are correctly detected for blocking.
- If the form is not loading after consent, you can choose between:
- Setting
reloadOnConsent: true to reload the page after consent is given. - Replacing the original HubSpot form snippet with the following code to load the form without reloading the page:
<script class="_iub_cs_activate-inline" type="text/plain" data-iub-purposes="5">
const script = document.createElement('script');
script.src = 'https://js.hsforms.net/forms/embed/v2.js';
script.onload = function() {
hbspt.forms.create({
region: "na1",
portalId: "your-portal-id",
formId: "your-form-id"
});
}
document.head.appendChild(script);
</script>