You are here

function adsense_counter in Google AdSense integration 5.2

Same name and namespace in other branches
  1. 5 adsense.module \adsense_counter()
1 string reference to 'adsense_counter'
adsense_menu in ./adsense.module
Implementation of hook_menu().

File

./adsense.module, line 1527

Code

function adsense_counter() {
  if (variable_get(ADSENSE_CLICK_TRACKING, 0)) {
    $path = $_GET['u'];
    db_query("INSERT INTO {adsense_clicks} (ip, timestamp, path) values('%s', %d, '%s')", $_SERVER['REMOTE_ADDR'], time(), $path);
  }
}