// Functions relating to VISITOR TRACKING // version 3.4 - updated April 2011 // (corrected $_SESSION['referrer']; error - 07/04/11) // ---------------------------------------------------------------- // Author: Cornish WebServices - http://www.cornishwebservices.co.uk // Copyright statements to be kept in this file // ---------------------------------------------------------------- // Description: setups the parameters for search tracking code // functions called in tracking.php // $webReferrer deals with lead from natural search listings // $webReferrer2 only used for echoing test messages // function fromCookie($key) { $val = $_COOKIE[$key]; setcookie($key,$val,time()+3600*12*1); // for 3 days return $val; } // grab the source and keyword data from PPC campaigns if(isset($_REQUEST['source'])){ $source = $_REQUEST['source']; // source=adwords / yahoo / msn / content } else { $source = ""; } if(isset($_REQUEST['keyword'])){ $keyword = $_REQUEST['keyword']; // keyword= } else { $keyword = ""; } // do not save when refreshed, otherwise will overwrite the true values if ($source!="") $_SESSION['form0'][0]=$source; if ($keyword!="") $_SESSION['form0'][1]=$keyword; if(isset($_SERVER['HTTP_REFERER'])){ $webReferrer = $_SERVER['HTTP_REFERER']; } else { $webReferrer = ""; } // only update session if not already defined $dom = $_SERVER['HTTP_HOST']; $domLength = strlen($dom); if (($webReferrer=="") ||(substr($webReferrer,7,$domLength)==$dom) ||(substr($webReferrer,8,$domLength)==$dom) ) { // old sesssion so use phone number used before } else { // new session so record referrer $_SESSION['referrer'] = $webReferrer; } $webReferrer2 = $_SESSION['referrer']; ?>
With Google’s frequent algorithm updates, SEO practice and management has changed a lot over the last couple of years. There are likely to be more changes in 2013 too, so how can you ensure that your search engine optimisation is planned...
If you have a website it is important to make sure your search engine optimisation is tip top in order to keep your site seen high up on the search engines. Good SEO will help your website to rise up the search engines. Search engine optimisation...
Many people today who manage or use PPC advertising are wondering whether it is worth using paid search management tools. There are many of these paid for bid management tools out there but what do they offer and are they worth paying for? Many...
There are several things to remember when using pay-per-click advertising for e-commerce websites. When measuring the overall success of a PPC campaign for an e-commerce site, you need to make sure you’ve made the most of both designing your...
You may have heard the term ‘content is king’ thrown around in marketing circles. This relates to the concept that the words and written content for the site are crucial not only for seo but for external advertising and broader online...
Creating quality landing pages requires much thought and consideration in terms of the content and wording used in conjunction with the purpose. It is of great importance for you marketing campaign to focus on the relevancy and clarity of the page...