Skip to content

User Variables

Callum Newman edited this page Sep 26, 2024 · 3 revisions

User Variables

This section defines variables related to the user’s browser or device, focusing on the userAgent variable, which captures information about the user's device and browser.


userAgent

Description: This variable captures the HTTP_USER_AGENT from the server variables, which provides details about the user's browser and operating system. It is useful for determining compatibility or tailoring the experience based on the user's device.

<xsl:variable name="userAgent" select="/Page/Request/ServerVariables/Item[@name='HTTP_USER_AGENT']"/>

Back to Functions.xsl


Clone this wiki locally