Below is a list of available shortcodes to display the users location, date and device information. These shortcodes can have a default value set which will be displayed as a fallback if the real value cannot be retrieved (ie. Geolocation API failed or users device type cannot be determined). If no default value is set and the real value cannot be retrieved, the shortcode will not display anything.
For testing purpose, enable/disable the "Geolocation API" option in the post settings to verify how the shortcodes work with and without default values set.
Shortcodes With Default Values:
User Country Code (2 letter): US
User Country: United States
User State Code (2 letter): CA
User State: California
User City: San Francisco
User Date: Day (number): 15
User Date: Month (number): 6
User Date: Year: 2025
User Date: Month (as text): June
User Date: Weekday: Thursday
User Device Type: desktop
User Device Vendor: Apple
User Device OS: iOS
User Device Group: Desktop/Laptop (any OS)
Shortcodes Without Default Values:
User Country Code (2 letter):
User Country:
User State Code (2 letter):
User State:
User City:
User Date: Day (number):
User Date: Month (number):
User Date: Year:
User Date: Month (as text):
User Date: Weekday:
User Device Type:
User Device Vendor:
User Device OS:
User Device Group: Desktop/Laptop (any OS)