FUEL CMS User Guide : Version 1.5.2


Google Helper

Function Reference [+]

google_uanalytics(['$uacct'=''], [$other_params=array()], ['$check_devmode'=TRUE])

Google Universal Analytics. Inserts google universal analytics tracking code into view If a tracking code is passed in, then it will use that uacct info Otherwise, it will use the value defined in the google.php config file If both values do not exist, nothing will be inserted.

google_analytics(['$uacct'=''], [$other_params=array()], ['$check_devmode'=TRUE])

Google Analytics. Inserts google analytics tracking code into view If a tracking code is passed in, then it will use that uacct info Otherwise, it will use the value defined in the google.php config file If both values do not exist, nothing will be inserted.

google_map('$address', [$params=array()])

Google map. Returns an iframed Google map.

google_map_url('$address', [$params=array()])

Google map URL. Returns a google map URL (used by the google_map function too).

google_geolocate('$data', ['$return'='all'], ['$long'=TRUE])

Google geolocate. Finds the latitude and longitude of a given address. Use sleep() or usleep() functions to meter multiple requests (10/s is limit I believe) More on the return types here: https://developers.google.com/maps/documentation/geocoding/.