user_geo_home

Description

Returns the most frequent location of your user based on Sailthru’s geolocation data.

 mixed user_geo_home( string geo_field )
  • The geo_field specifies which form of geolocation data you want returned.
    The valid options are: city, country, state, zip, postal, and coordinates.

    • city, country, state, zip, and postal will all return their values as a string.
    • coordinates will return an array with the latitude and longitude of the most common ZIP/postal code in the format [latitude, longitude].

Examples

{user_geo_home("state")}

Returns NY US

{user_geo_home("zip")}

Returns 10010 US

{user_geo_home("coordinates")}

Returns [40.712, -74.005]

Top