!
Warning
This document has not been updated for a while now. It may be out of date.
Last updated:
2 Dec 2022
govuk-google-analytics: text
name: text
description: The text of the thing being tracked, for example the text of a link, button or tab. This can either be read directly from the element, passed from a data attribute, or generated automatically for elements where the text changes, for example the ‘Show all sections’ link in an accordion, which can also read ‘Hide all sections’.
value: text of the element
required: no
type: string
redact: false