Usage:
This shortcode enables one to query whether a visitor’s User Agent (browser) is one of the ones provided in a list of possible names.
[ELSE_is_user_agent] conditional branching is supported.
Shortcode nesting is NOT supported.
Parameters:
name | Specify one or more user agents. Since a visitor cannot have more than one user agent, any matching agent will resolve to true if more than one is specified. Default: none. Required: yes. |
Any one of the following user agents may be used:
android |
apache |
blackberry |
chrome |
edge |
ff |
firefox |
gecko |
ie |
iis |
iis7 |
ipad |
iphone |
ipod |
kindle |
macff |
macie |
mobile |
ns4 |
opera |
operamini |
operamobi |
safari |
silk |
winff |
winie |
lynx |
Example:
[mbr_is_user_agent name='firefox'] User agent is firefox. [ELSE_is_user_agent] User agent is NOT firefox. [/mbr_is_user_agent]
[mbr_is_user_agent name=chrome,edge] User agent is chrome or edge. [ELSE_is_user_agent] User agent is NOT chrome NOR edge. [/mbr_is_user_agent]
API:
There is currently no ActiveMember360 API function equivalent for this shortcode.