Install guide · Tag template

Add the visitor toolbar with Google Tag Manager

How to add the visitor toolbar to a site through Google Tag Manager. The toolbar lets a visitor change how your pages look and read for themselves; it fixes nothing in your site, does not change whether it meets WCAG or the BFSG, and our scans never see it.

Before you start

  • Your site key. It is in the Reviseberg dashboard, under Settings › Visitor toolbar, on the Install tab. In the steps below it is written YOUR-SITE-KEY.
  • Switch the toolbar on for your site on the same screen. Until it is on, the tag loads and shows nothing.

Download

The package is reviseberg-toolbar-gtm-1.0.0.zip. It is not listed in any platform’s store yet: you install it from this download.

Download for Google Tag Manager (version 1.0.0)

Steps

  1. Download the template above and unpack it.
  2. In Tag Manager, open Templates, click New under Tag Templates, then the ⋮ menu › Import, and choose template.tpl. Save.
  3. Go to Tags › New › Tag configuration and choose Reviseberg Toolbar.
  4. Paste your site key, keep the script host, and choose the trigger Initialization – All Pages (or All Pages).
  5. Preview, then Submit and publish the container.

Good to know

Tag Manager cannot set an attribute on a script it adds, so this template puts the key in the address as ?key=. The toolbar reads it there; the result is the same.

The template is not in the Community Template Gallery yet.

Check that it works

  • Open a page of your site in a private window — not in the platform’s editor or preview, where most plugins leave the tag out on purpose.
  • View the page source, or search the developer tools’ Elements panel, for widget/v1.js. There should be exactly one tag, with your key.
  • The toolbar’s button appears once the toolbar is switched on in the dashboard. On the same screen, “Last seen on your site” says when the tag last loaded on one of your pages.
  • No button? The browser console has a line beginning “Reviseberg toolbar:” that says why — a key with the wrong shape, for example, or the tag on the page twice.
  • The toolbar answers only on the addresses allowed under Settings › Visitor toolbar; your site’s own address always is. Add a staging address there before you test on it.

More