• We recently switched to a new server and the code below that I used to grab GA _utmz values doesn’t work anymore. I also tried $_SERVER[‘QUERY_STRING’] and I get nothing.

    if ( isset($_GET['utm_medium']) ) {
      	$medium   = $_GET['utm_medium'];
    }

    I was just wondering if it is due to the PHP version installed on the server. Any insight is appreciated. Btw, the code runs fine on my localserver.

    Thanks!

Viewing 1 replies (of 1 total)
  • Hello sabuhiy,

    Yes php version can be a problem for this kind of error as the register_globals feature, which automatically put form fields in regular variable scope and initialized with expected values is deprecated DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0, you can check more about this Here ,

    Hope this will help you.

Viewing 1 replies (of 1 total)
  • The topic ‘$_GET and $_SERVER['QUERY_STRING'] not working’ is closed to new replies.