A tag template for Google Tag Manager (Web) that connects the AltTextLab Web Snippet and automatically generates alt-text for images.
- Loads the AltTextLab Web Snippet from a CDN
- Improves accessibility (WCAG/ADA) and SEO
- Works without changing your website code (via GTM)
- Google Tag Manager Web container
- AltTextLab access data:
Site IDPublic Key
- Install the GTM template
- On https://app.alttextlab.com/web-snippets create a new Web Snippet and copy the provided
Site IDandPublic Key - Publish the tag
Fill in the fields:
Site ID- the site identifier in AltTextLabPublic Key- the project public keyLanguage- the generation language (defaulten)Style- text style:descriptiveneutral(default)matter-of-factminimal
Recommended start trigger: All Pages.
- In GTM enable Preview
- Open your site and make sure the tag fired
- In DevTools verify:
- the presence of
window.__alttextlab_config - that
https://cdn.alttextlab.com/embed.jsis loaded
- the presence of
The template uses standard GTM permissions:
access_globals- access to__alttextlab_configinject_script- loads the script fromhttps://cdn.alttextlab.com/embed.js*logging- logging in debug environments
- The tag doesn't fire: check the trigger and container publication
- No output: make sure
Site IDandPublic Keyare set correctly
- Site: https://www.alttextlab.com/
- Web Snippet documentation: https://www.alttextlab.com/docs/web-snippet