Page Context
<html> element. GTM reads these using DOM element variables whenever any event fires, so every event automatically picks up the correct section, page type, and content age - with no JavaScript required from the site.
Change these values to simulate a different page type. GTM reads from the <html> element on every event, so all events below will reflect whatever is set here.
Current <html> attributes:
CTA Block
data-nas-ga-success. It traverses the DOM to find that attribute, reads the value as success_type, and reads data-nas-ga-component as web_component. Editors set these in the CMS when they add a component - no developer needed per page.The same CTA button template serves four different success types depending on what the editor sets.
Find local support
Search our directory of autism-friendly services near you.
data-nas-ga-component="cta_block"
Download our guide
A practical guide to understanding an autism diagnosis.
data-nas-ga-component="cta_block"
Support our work
Your donation helps us reach more autistic people and families.
data-nas-ga-component="cta_block"
Contact our helpline
Our specialist team can answer your questions about autism.
data-nas-ga-component="cta_block"
data-nas-ga-success is missing, GTM finds nothing and nothing fires. Coverage grows as editors configure components, but the data is never wrong.
Resource Block
data-nas-ga-success="download" baked into the widget template - this is a single-purpose widget, so there's no need for editors to set it. The data-nas-ga-component="resource_block" value is what lets you split resource downloads from CTA block clicks in reporting.
Donation Widget
data-nas-ga-success="conversion" and data-nas-ga-component="donation_widget" fixed in the template - no editor config needed. GTM reads these on click, exactly the same as any other element.
Donation complete
GTM read data-nas-ga-success="conversion" from the button and fired the event
Email Subscribe Block
data-nas-ga-success="connection" fixed in the template. GTM fires on click if the form is valid. If validation fails, the error element appears in the DOM with data-nas-ga-error="form_validation" - GTM reads that and fires a site_error event.
Ask Ash
data-nas-ga-success="tool_use" fixed in the template. If the API call fails, the error element gets data-nas-ga-error="api_timeout" and GTM reads that instead. Use the β button to simulate the failure path.
Search Results
data-nas-ga-result-count set to the number of results. GTM reads that value on the search submit trigger. When a user clicks a result, GTM reads data-nas-ga-success="navigation" from the result element. Zero results fire with data-nas-ga-result-count="0".Try searching: autism, diagnosis, support - or anything else for zero results.
Directory Listing
data-nas-ga-success="navigation" and data-nas-ga-component="directory_listing" on click.
Deep Read - Article
data-nas-ga-reading-time. GTM reads this value and uses it as the threshold for its timer trigger. Both the scroll depth trigger and the timer trigger must fire before the success event goes. This article uses 15 seconds for UAT.
Understanding autism: an introduction
Autism is a lifelong developmental condition that affects how people perceive and interact with the world. It is a spectrum condition, which means that while all autistic people share certain characteristics, the condition affects each person differently and to varying degrees.
Autistic people may find some things more difficult than non-autistic people, but there are also many things autistic people find easier or experience differently. Autism is not a disease - it cannot be caught, and there is no cure. Many autistic people and their families see autism as a fundamental part of who they are, not something to be fixed.
The estimated number of autistic people in the UK is around 700,000, which means that with their families, autism touches the lives of 2.8 million people every day. Yet autistic people and their families often struggle to get the support they need, when they need it.
Research continues to improve our understanding of autism. The causes are complex, involving a combination of genetic and environmental factors. No single gene or cause has been identified.
Early diagnosis and appropriate support can make an enormous difference. Understanding that a child is autistic can help parents and teachers support them more effectively, and can help the autistic person themselves understand why they experience the world the way they do.
β Scroll to the bottom of this box to meet the scroll condition
Error / Friction Events
data-nas-ga-error="[type]" and data-nas-ga-component="[widget]". GTM has an element visibility trigger watching for these elements - when one becomes visible, GTM reads the attribute values and fires a site_error event. All friction across the site flows through one consistent event with a controlled vocabulary.