You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I was switching to this conset library and really enjoy working with it so far.
However I now hit a bit of a wall when it comes to dynamically loaded scripts that are only loaded on specific pages after approving the dialog.
I tried to first define the service in the settings ....
CookieConsent.run({revision: 1,disablePageInteraction: true,categories: {necessary: {enabled: true,// this category is enabled by defaultreadOnly: true,// this category cannot be disabled}},widgets: {services: {test: {label: 'This is a test widget.',}}}}},language: {default: 'en',translations: {en: {consentModal: {title: 'Cookie consent',description: 'This website uses cookies to ensure you get the best experience on our website.',acceptAllBtn: 'Accept all',acceptNecessaryBtn: 'Reject all',showPreferencesBtn: 'Manage Individual preferences'},preferencesModal: {title: 'Manage cookie preferences',acceptAllBtn: 'Accept all',acceptNecessaryBtn: 'Reject all',savePreferencesBtn: 'Accept current selection',closeIconLabel: 'Close modal',sections: [{title: 'Widgets',description: 'Third party embeddings in the website to show information.',linkedCategory: 'widgets'},]}}}}});
and then later tag the dynamic loaded script with the same service name.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I was switching to this conset library and really enjoy working with it so far.
However I now hit a bit of a wall when it comes to dynamically loaded scripts that are only loaded on specific pages after approving the dialog.
I tried to first define the service in the settings ....
and then later tag the dynamic loaded script with the same service name.
Is there anyway I can achieve this functionality easily?
Beta Was this translation helpful? Give feedback.
All reactions