Skip to main content

2 docs tagged with "Script Control"

View all tags

Blocking Page Reloads

By default, DataGrail Consent reloads the page when a visitor updates their consent preferences. This ensures that scripts blocked or allowed by the new preferences take effect immediately. However, a full page reload is not always desirable — particularly for single-page applications (SPAs) or implementations using progressive consent, where you dynamically load or remove content based on consent state.

Progressive Consent

Some embedded content, like YouTube videos or social media widgets, loads third-party trackers as soon as the page renders. Progressive consent lets you block that content behind a placeholder and only load it after the visitor explicitly grants consent. This approach is especially useful for meeting opt-in requirements under regulations like GDPR.