function statcounter_get_url in StatCounter 5
Same name and namespace in other branches
- 6 statcounter.module \statcounter_get_url()
Get the url to be used with for checking.
1 call to statcounter_get_url()
- statcounter_display in ./
statcounter.module - Check to see if the StatCounter code should be added to the page.
File
- ./
statcounter.module, line 113 - Provides an integration with StatCounter which logs user activity.
Code
function statcounter_get_url() {
if (isset($_GET['q'])) {
return $_GET['q'] == variable_get('site_frontpage', 'node') ? 'home' : $_GET['q'];
}
return 'unknown';
}