CMS Development

Elty
Participant

Consent banner blocks script

SOLVE

We have a script running on our cms website, that opens a sidebar. 

But after the decline decission the script gets blocked, this only works after consenting the cookies. This has nothing to do with cookies or tracking, how can we fix this ? 

0 Upvotes
1 Accepted solution
evaldas
Solution
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

Consent banner blocks script

SOLVE

Just making a note that we chatted through DM and the scripts are loaded through requirejs.config in a template/partial.

 

requirejs.config({
  urlArgs: "v={{ version }}", 
  paths: {
    jquery: 'https://code.jquery.com/jquery-x.x.x.min',
    slick: 'https://cdn2.hubspot.net/hubfs/xxxxxxx/slick.min',
    tabs: '{{ get_public_template_url( 'xxxxxxx/tabs.js') | cut('.js') }}',
     // etc.......
  }) ;

requirejs (['app']);

 

The HubSpot cookie consent should not be interfering with this kind of setup (i.e. not loading scripts, such as "slick.min.js") and there might be something else going on - unless I am missing something.   

 

I am not familiar enough with this to advise further - tagging @Jaycee_Lewis in case you have any insight. 


✔️ Did this post help answer your query? Help the community by marking it as a solution.

View solution in original post

4 Replies 4
evaldas
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

Consent banner blocks script

SOLVE

Hi @Elty 

 

Is your script for opening a sidebar implemented via Google Tag Manager by chance? 


✔️ Did this post help answer your query? Help the community by marking it as a solution.

0 Upvotes
Elty
Participant

Consent banner blocks script

SOLVE

nope, they arent. Its a script loaded by another script and so on. Its a Jquery script and keeps loading in other scripts if needed but no external scripts all self written. 

 

0 Upvotes
evaldas
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

Consent banner blocks script

SOLVE

Could you provide more information on how the script was placed? i.e. is it placed in the templates in Design Manager or in the header/footer in Website Settings?

 

Also, a link to the website would help be helpful for troubleshooting as well if you don't mind sharing that. 


✔️ Did this post help answer your query? Help the community by marking it as a solution.

0 Upvotes
evaldas
Solution
Key Advisor | Platinum Partner
Key Advisor | Platinum Partner

Consent banner blocks script

SOLVE

Just making a note that we chatted through DM and the scripts are loaded through requirejs.config in a template/partial.

 

requirejs.config({
  urlArgs: "v={{ version }}", 
  paths: {
    jquery: 'https://code.jquery.com/jquery-x.x.x.min',
    slick: 'https://cdn2.hubspot.net/hubfs/xxxxxxx/slick.min',
    tabs: '{{ get_public_template_url( 'xxxxxxx/tabs.js') | cut('.js') }}',
     // etc.......
  }) ;

requirejs (['app']);

 

The HubSpot cookie consent should not be interfering with this kind of setup (i.e. not loading scripts, such as "slick.min.js") and there might be something else going on - unless I am missing something.   

 

I am not familiar enough with this to advise further - tagging @Jaycee_Lewis in case you have any insight. 


✔️ Did this post help answer your query? Help the community by marking it as a solution.