Skip to main content

Standalone Deployment

Beta Feature

Standalone Deployment is in beta for select customers and prospects who have purchased DataGrail Consent. Please contact your Customer Success Manager or support@datagrail.io for more information.

You have the option to deploy DataGrail Consent to your website as an embedded script, rather than using our Google Tag Manager (GTM) deployment method. You may want to use DataGrail to load Consent on your site for the following scenarios:

  1. Site optimization: With an embedded script, you have more control over the loading order of DataGrail Consent. This is useful if you are running optimization software for A/B testing or other purposes.
  2. Circumventing web browser blockers: Some browsers block googletagmanager.com from loading on your website, which may preemptively block DataGrail Consent. Standalone deployment will allow DataGrail to independently load DataGrail Consent on your website, instead of via GTM.

Implementation

Google Tag Manager

DataGrail Consent still requires connectivity to Google Tag Manager in order to generate the embedded script; however, you do not need to have any scripts or cookies within the Google Tag Manager container itself.

After you have connected DataGrail to Google Tag Manager, you'll see the option to enable standalone deployment for each container within the manage containers screen:

Standalone Deployment Option

Enabling standalone deployment will alter the publish process to power the banner notice only via the embedded script added to your site, rather than through Google Tag Manager. Although standalone deployment will remove the script from being deployed via Google Tag Manager, we will still manage services and scripts within Google Tag Manager. The key difference with standalone deployment is changing the logic that controls when and how the banner notice appears on your site.

Each container has its own unique script tag, which looks like this:

<!-- DataGrail Consent Script -->
<script type="text/javascript" src="https://api.consentjs.datagrail.io/[CUSTOMER_ID]/[CONTAINER_ID]/consent-loader.js"></script>
<!-- End DataGrail Consent Script -->

You can place this script anywhere within the <head> of your website, which we recommend doing before toggling the standalone deployment option and republishing the banner. This will ensure changes take effect with zero downtime.

 

Need help?
If you have any questions, please reach out to your dedicated CSM or contact us at support@datagrail.io.

Disclaimer: The information contained in this message does not constitute as legal advice. We would advise seeking professional counsel before acting on or interpreting any material.