Skip to main content
All CollectionsTreez EcommerceEcommerce Best Practices
Enabling Accessibility Features for Ecommerce
Enabling Accessibility Features for Ecommerce

How to leverage Google Tag Manager to implement ADA compliant accessibility features for your Treez Ecommerce website

T
Written by Treez Support
Updated yesterday

Overview

According to the Americans with Disabilities Act (ADA), modern websites must be ADA compliant. This means that users with disabilities, such as eyesight impairment, can still functionally use your website.

One easy way to incorporate accessibility features into your website is to use accessiBe, which can be added to your Treez Ecommerce site using Google Tag Manager (GTM).

How to Implement accessiBe via GTM

Step 1: Obtain the accessiBe Script

  1. Login to accessiBe:

    • Create an accessiBe account, if you haven't already.

    • Go to your accessiBe account and navigate to the dashboard.

    • Locate the JavaScript code snippet provided for your site.

  2. Copy your site-specific accessiBe code.

The script will look something like this:

<script>
(function(d){
var s = d.createElement('script');
s.src = 'https://acsbapp.com/apps/app/path-to-your-site.js';
s.async = true;
s.defer = true;
d.getElementsByTagName('head')[0].appendChild(s);
})(document);
</script>

The above script is just an example. Do not copy or use the code as-is.


Step 2: Login to Google Tag Manager

  1. Access your GTM account and select the container for the website where you want to implement accessiBe.


Step 3: Create a Custom HTML Tag

  1. Go to Tags and click New.

  2. Choose Tag Type: Select Custom HTML.

  3. Paste the accessiBe script you copied earlier into the HTML editor.

  4. Enable Support document.write if prompted.


Step 4: Set the Trigger

  1. Click Triggering and select a trigger:

    • For the script to load on all pages: Use the built-in All Pages trigger.

    • To load the script conditionally, create a custom trigger based on specific page URLs or events.


Step 5: Test the Configuration

  1. Use the Preview Mode in GTM to ensure the script loads as expected.

    • Access your site in preview mode and check if the AccessiBe widget appears.

  2. Open the browser developer tools (F12) and verify the script is added to the page.


Step 6: Publish the Changes

  1. Once verified, click Submit in GTM.

  2. Add a name and description for the changes and click Publish.


Did this answer your question?