Contentful Personalization & Analytics
    Preparing search index...
    • Get the user agent string reported by the current browser.

      Returns string

      The value of navigator.userAgent.

      const ua = getUserAgent()