Google Ad Tracking 404

3 posts by 2 authors in: Forums > CMS Builder
Last Post: September 12, 2016   (RSS)

By jenolan - September 11, 2016

//New function to get the yatch type variable now we've added pages.
  $recordNum = 1;
  foreach($_REQUEST as $key => $item){
    if($key != 'page' && $key != 'sort' && strpos($key, 'utm') === false){
      $recordNum = preg_replace("/[^0-9,.]/", "",$item);
      break;
    }
  }


You have overridden the default handler... change this to;

//New function to get the yatch type variable now we've added pages.
  $recordNum = 1;
  foreach($_REQUEST as $key => $item){
    if($key != 'page' && $key != 'sort' && $key != 'gclid' && strpos($key, 'utm') === false){
      $recordNum = preg_replace("/[^0-9,.]/", "",$item);
      break;
    }
  }

---
<?= "Jenolan(Larry) :: Coding Since 1973" ?>
Peace and Long Life

By theclicklab - September 12, 2016

That's the one :) Thanks so much!!