Skip to content

Frameworks

Marketplace

Platform

Resources

↑↓ to moveEnter to openHelp, news and every page are found here too

Adding Asiri Consent with Google Tag Manager

Use the Asiri Consent template so Tag Manager holds every consent type at denied until a visitor chooses.

Updated

The Asiri Consent template for Google Tag Manager holds every consent type at denied until a visitor chooses, loads the Asiri script, and passes each choice to Google Consent Mode.

Who can do this

An Owner or Admin of your Asiri workspace. The secret key, where a step needs one, is visible to Owners and Admins only.

Before you start

You need a source and a publishable key. Open Consent, then Sources, choose your source and open its Install tab. Your source id is on that page. A publishable key starts with pk_live_ or pk_test_; make one on Consent's Keys page, opened by Keys beside the source on Sources, if you have not got one. A publishable key goes in the page and records choices against a visitor only. A secret key starts with sk_ and never goes in a page, a theme or a tag. Never paste a secret key into Tag Manager.

Add it

  1. In Tag Manager, open Templates, then Tag Templates, then Search Gallery. Choose Asiri Consent and add it to the workspace.
  2. Open Tags and choose New tag, then Asiri Consent. Paste your source id and publishable key.
  3. Set the trigger to Consent Initialization, All Pages, so the tag fires before any other. Submit and publish.

How categories map

  • Marketing: ad_storage, ad_user_data, ad_personalization
  • Analytics: analytics_storage
  • Preferences: personalization_storage
  • Necessary: functionality_storage

Know this

Tag Manager cannot check the script's integrity hash. The template instead pins the exact versioned address, so each new script release needs a new version of the template.

Can’t find what you need? Contact us.