<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Integrate own cookie consent banner with hubspot in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/1033348#M76204</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;! I was wondering if there will be API calls that allow us to SET, instead of READ only consents, or if there is any workaround. I am already using the consent banner API, e.g. to fire scripts or allow external embeds based on consent choices of the user. However, in cases where we are required to use an external CMP system like usercentrics, I'd need to &lt;STRONG&gt;remote-control the HubSpot consents&lt;/STRONG&gt;. &lt;BR /&gt;This would require an API call to&amp;nbsp;&lt;STRONG&gt;SET&lt;/STRONG&gt; (instead of read, only) &lt;STRONG&gt;the consents&lt;/STRONG&gt; for each category in HubSpot &lt;STRONG&gt;programmatically&lt;/STRONG&gt; via JavaScript based on the choices in the external CMP. &lt;BR /&gt;&lt;BR /&gt;My workaround for the classic HubSpot Banner (with option allow/deny) was to hide the HubSpot banner and click on the appropriate Button on the hidden HubSpot Banner using Javascript. &lt;BR /&gt;&lt;BR /&gt;But I need to switch to the HubSpot Banner that supports different categories for some of our projects, because&amp;nbsp;I need to control HubSpot tracking (stats) and&amp;nbsp;ad pixel integrations (marketing) separately without showing the HubSpot Banner (because we need to show the external CMP, only). I was wondering if there is any workaround for this purpose or feature update, as solving this by programmatically with JS by clicking into the categories of the hidden HubSpot banner would require a lot of Code and would be error-prone.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any suggestion &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers Martin&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2024 12:56:40 GMT</pubDate>
    <dc:creator>magmar</dc:creator>
    <dc:date>2024-08-28T12:56:40Z</dc:date>
    <item>
      <title>Integrate own cookie consent banner with hubspot</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/944009#M71944</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a website, which I am now trying to overhaul by creating my own cookie consent banner.&lt;/P&gt;&lt;P&gt;How exactly can I simulate hubspot banner clicks or to set hubspot cookie consents for marketing/analytics/essentials programmatically?&lt;/P&gt;&lt;P&gt;The given HubSpot documentation has not provided a way to set specific cookie consents, which is why I am thinking of emulating hubspot consent banner clicks. If there is an easier way, feel free to share it.&lt;/P&gt;&lt;P&gt;Thank you in advance for all your replies!&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Winston&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 17:22:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/944009#M71944</guid>
      <dc:creator>WinstonN</dc:creator>
      <dc:date>2024-03-14T17:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Integrate own cookie consent banner with hubspot</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/944563#M71976</link>
      <description>&lt;P&gt;Hi, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/669166"&gt;@WinstonN&lt;/a&gt;&lt;/SPAN&gt; &lt;span class="lia-unicode-emoji" title=":waving_hand:"&gt;👋&lt;/span&gt; Welcome to our community.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Implementing your cookie consent mechanism with HubSpot requires careful consideration due to privacy laws like GDPR. While you can use JavaScript to interact with HubSpot's cookie settings, simulating consent clicks or setting consents directly isn't straightforward due to the legal implications involved. This is why there are not any HubSpot official documents or solutions for this type of project. Ensure your custom consent process complies with all relevant laws by consulting legal experts. This step is crucial to maintain compliance and uphold user privacy standards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Jaycee&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 16:20:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/944563#M71976</guid>
      <dc:creator>Jaycee_Lewis</dc:creator>
      <dc:date>2024-03-15T16:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: Integrate own cookie consent banner with hubspot</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/944687#M71983</link>
      <description>&lt;P&gt;Hi Jaycee,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much for your reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I do know that in order to be in accordance with privacy laws like the GDPR, many regulations have to be complied with, but I am already working together with legal experts to follow these.&lt;/P&gt;&lt;P&gt;I am simply asking for a small example on how to simulate those clicks. I have asked the Hubspot Support, but they told me that I would be better off at finding a solution, if I post my issue in the HubSpot community.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since I want to use a custom developed consent banner, I would need to find an implementation of this, because I want to use HubSpot cookies on my website.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have an example of a javascript script, which could simulate hubspot consent clicks?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope you (or anyone else) can help me out with my problem!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Winston&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 19:11:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/944687#M71983</guid>
      <dc:creator>WinstonN</dc:creator>
      <dc:date>2024-03-15T19:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Integrate own cookie consent banner with hubspot</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/947075#M72082</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/669166"&gt;@WinstonN&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just in case you have not see this, HubSpot has some documentation for &lt;A href="https://developers.hubspot.com/docs/api/events/cookie-banner" target="_blank" rel="noopener"&gt;Cookie consent banner API&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While it may not answer all the questions, it gives some javascript examples on how cookies can be enabled/disabled, as well as getting privacy consent status per category (analytics, advertisement, functionality).&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2024 19:39:07 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/947075#M72082</guid>
      <dc:creator>evaldas</dc:creator>
      <dc:date>2024-03-20T19:39:07Z</dc:date>
    </item>
    <item>
      <title>Re: Integrate own cookie consent banner with hubspot</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/1002260#M74822</link>
      <description>&lt;P&gt;Hi Jaycee,&lt;BR /&gt;&lt;BR /&gt;do you have any suggestion on how we could integrate HubSpot with other leading CMP systems like usercentrics &lt;STRONG&gt;while beeing able to use integrated pixels (like Google Ads) within HubSpot. &lt;/STRONG&gt;We need this, so our clients may continue to use HubSpot's integrated ads features. I've studied all documentation and I know HubSpot and usercentrics inside out - it's easy to deny or allow all HubSpot Cookies with some workarounds like simulated clicks etc. But I didn't find any stable way to control the opt-in for a specific category like marketing (which controls whether e.g. Google Pixel is loaded), because there are no functions like setConsent in the HubSpot consent API. We need usercentrics to handle this amount of consents (16 regions, 30 languages, pre-defined service templates), this is why we can't switch to the HubSpot banner system.&lt;STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Is there any chance on allowing us to set HubSpot consent categories via API?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've seen that your scripts post settings via a click on "save settings"&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class=""&gt;&lt;A href="https://js-eu1.hs-banner.com/v2/activity/click" target="_blank" rel="noopener"&gt;https://js-eu1.hs-banner.com/v2/activity/click&lt;/A&gt;&lt;/P&gt;
&lt;P class=""&gt;posts a JSON:&lt;/P&gt;
&lt;P class=""&gt;{"bannerGeoLocation":"DE-NW","bannerPolicyId":????????,"bannerType":"COOKIES_BY_CATEGORY","domain":"??????","portalId":???????,"contentId":?????????,"consentAllowed":false,"consentAnalytics":false,"consentAdvertisement":true,"consentFunctionality":false}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Any way that we could utilize this?&lt;BR /&gt;&lt;BR /&gt;I would be happy for any help, since our clients really want to use the integrated ads functions in HubSpot. Thanks in advance!&lt;BR /&gt;&lt;BR /&gt;Martin&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 19:20:18 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/1002260#M74822</guid>
      <dc:creator>magmar</dc:creator>
      <dc:date>2024-07-08T19:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Integrate own cookie consent banner with hubspot</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/1033348#M76204</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/127074"&gt;@Jaycee_Lewis&lt;/a&gt;&amp;nbsp;! I was wondering if there will be API calls that allow us to SET, instead of READ only consents, or if there is any workaround. I am already using the consent banner API, e.g. to fire scripts or allow external embeds based on consent choices of the user. However, in cases where we are required to use an external CMP system like usercentrics, I'd need to &lt;STRONG&gt;remote-control the HubSpot consents&lt;/STRONG&gt;. &lt;BR /&gt;This would require an API call to&amp;nbsp;&lt;STRONG&gt;SET&lt;/STRONG&gt; (instead of read, only) &lt;STRONG&gt;the consents&lt;/STRONG&gt; for each category in HubSpot &lt;STRONG&gt;programmatically&lt;/STRONG&gt; via JavaScript based on the choices in the external CMP. &lt;BR /&gt;&lt;BR /&gt;My workaround for the classic HubSpot Banner (with option allow/deny) was to hide the HubSpot banner and click on the appropriate Button on the hidden HubSpot Banner using Javascript. &lt;BR /&gt;&lt;BR /&gt;But I need to switch to the HubSpot Banner that supports different categories for some of our projects, because&amp;nbsp;I need to control HubSpot tracking (stats) and&amp;nbsp;ad pixel integrations (marketing) separately without showing the HubSpot Banner (because we need to show the external CMP, only). I was wondering if there is any workaround for this purpose or feature update, as solving this by programmatically with JS by clicking into the categories of the hidden HubSpot banner would require a lot of Code and would be error-prone.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance for any suggestion &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers Martin&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 12:56:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/1033348#M76204</guid>
      <dc:creator>magmar</dc:creator>
      <dc:date>2024-08-28T12:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Integrate own cookie consent banner with hubspot</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/1100461#M79901</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/669166"&gt;@WinstonN&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/53048"&gt;@evaldas&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;just to update this thread: HubSpot has introduced a new "SET" method, that allows you to set consents by category. This means, that you can use a 3rd party consent management and map those consents to HubSpot consents. The cookie banner API has been updated to support SET like so:&lt;BR /&gt;&lt;BR /&gt;window._hsp = window._hsp || [];&lt;BR /&gt;window._hsp.push([&lt;BR /&gt;'setHubSpotConsent',&lt;BR /&gt;{&lt;BR /&gt;analytics: true,&lt;BR /&gt;advertisement: true,&lt;BR /&gt;functionality: true,&lt;BR /&gt;},&lt;BR /&gt;]);&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://developers.hubspot.com/docs/reference/api/analytics-and-events/cookie-banner/cookie-banner-api" target="_blank"&gt;https://developers.hubspot.com/docs/reference/api/analytics-and-events/cookie-banner/cookie-banner-api&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Best regards&lt;BR /&gt;Martin&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/669166"&gt;@WinstonN&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Jaycee,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you very much for your reply!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do know that in order to be in accordance with privacy laws like the GDPR, many regulations have to be complied with, but I am already working together with legal experts to follow these.&lt;/P&gt;
&lt;P&gt;I am simply asking for a small example on how to simulate those clicks. I have asked the Hubspot Support, but they told me that I would be better off at finding a solution, if I post my issue in the HubSpot community.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I want to use a custom developed consent banner, I would need to find an implementation of this, because I want to use HubSpot cookies on my website.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have an example of a javascript script, which could simulate hubspot consent clicks?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope you (or anyone else) can help me out with my problem!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Winston&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 10:26:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/1100461#M79901</guid>
      <dc:creator>magmar</dc:creator>
      <dc:date>2025-01-28T10:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Integrate own cookie consent banner with hubspot</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/1100584#M79910</link>
      <description>&lt;P class=""&gt;I know it's been a few months, but you can look into other cookie banner solutions that can do what you're looking for in a much simpler way. As you scale and grow your website, and with &lt;A href="https://www.ketch.com/blog/posts/us-privacy-laws-2025" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;new legislations&lt;/SPAN&gt;&lt;/A&gt; being passed in the US and around the globe, you will need a more robust solution to respect your users consent everywhere, called &lt;A href="https://www.ketch.com/blog/posts/consent-management" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;consent management platform&lt;/SPAN&gt;&lt;/A&gt; (CMP). You can start with &lt;A href="https://www.ketch.com/ketch-free-cookie-banner" target="_blank" rel="noopener"&gt;&lt;SPAN class=""&gt;free CMP&lt;/SPAN&gt;&lt;/A&gt; solutions first too. Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 14:32:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/1100584#M79910</guid>
      <dc:creator>StephaneLM</dc:creator>
      <dc:date>2025-01-28T14:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Integrate own cookie consent banner with hubspot</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/1100615#M79916</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/669166"&gt;@WinstonN&lt;/a&gt;&amp;nbsp;An easier way would be to&amp;nbsp;&lt;SPAN&gt;also look at cookie banner solutions that are much simpler to implement.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;They're called&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.ketch.com/blog/posts/consent-management" target="_blank" rel="noopener nofollow noreferrer"&gt;consent management platform&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;(CMP). You can start with&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.ketch.com/ketch-free-cookie-banner" target="_blank" rel="noopener nofollow noreferrer"&gt;free CMP&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;solutions first for instance&lt;/SPAN&gt;&lt;SPAN&gt;. Just sharing this out there. Hope this helps, and good luck!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jan 2025 15:18:11 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Integrate-own-cookie-consent-banner-with-hubspot/m-p/1100615#M79916</guid>
      <dc:creator>StephaneLM</dc:creator>
      <dc:date>2025-01-28T15:18:11Z</dc:date>
    </item>
  </channel>
</rss>

