Analysis

HubSpot Content Embed Block

Analysis

HubSpot Content Embed Block



import { injectHsEmbed } from ‘https://develop.nielseniq.com/wp-content/plugins/hubspot-content-embed/build/hsEmbedInjector.js’; const elementId = “hs-embed-client-inject-169512712017-0758”; const embedDomain = “https://gfk-apps-testing-gfk-21123323.hs-sites.com/_hcms/embed/169512712017”; const embedId = 169512712017; const options = { sendCurrentUTKAsParam: true }; injectHsEmbed(embedId, embedDomain, elementId, options).catch((err) => { // If the embed fails for some reason, just completely hide it console.error(‘HubSpot Content embed injection error:’, err); document.getElementById(elementId).style.height = 0; document.getElementById(elementId).style.minHeight = 0; })