Plugin screenshot thumbnail 1/1

Parse user agent data into reliable methods for detecting the users browser, device type, operating system, platform, etc...

This is an extension to Jens Segers Agent utility. Refer to their documentation for all available methods.

Some additional methods bespoke to this plugin include:

  • Check to determine the users browser and version type is a match.

  • Redirect users to a new template/url if the user agent doesn't match any of the check criteria.

  • setAttributesToHTML will define the users device name, version and device type directly to the <html> element.

  • agent.min.js is a small IIFE script file (< 0.7k) that can be injected directly into the <head> to expose the user agents device name, version and device type directly to the window scope.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Active Installs
425
Version
4.0.0
License
MIT
Compatibility
Craft 3, Craft 4
Last release
August 21, 2022
Activity (30 days)
0
Closed Issues
1
Open Issues
0
Merged PRs
0
Open PRs