Difference between revisions of "NATS4 Type-In Traffic"
Line 28: | Line 28: | ||
Default Join Form Link: | Default Join Form Link: | ||
<pre> | <pre> | ||
− | <linkdomain>/signup/signup.php?nats=<?=$_REQUEST['nats']?$_REQUEST['nats']:'MC4wLjEuMS4wLjAuMC4wLjA'?>&step=2 | + | <linkdomain>/signup/signup.php?nats=<?=(!empty($_REQUEST['nats']) && !preg_match('/[\'\"<>()\\\+\[\]]/', $_REQUEST['nats']))?$_REQUEST['nats']:'MC4wLjEuMS4wLjAuMC4wLjA'?>&step=2 |
</pre> | </pre> | ||
Latest revision as of 15:32, 19 May 2017
Type-In Traffic is considered to be any visitor/surfer that was not redirected through an affiliate's link, and as a result has not had their hits/activity tracked or gone through standard tour pages.
NATS Admin
NATS4 allows tracking of Raw and Unique hits that come from Type-In traffic and have gone through a Default Track Link. In order to view Type-In traffic, you must select Type-In for the Program when generating a report.
If you would like to track all Type-In traffic's Raw and Unique hits you will need to set up a re-direct script at the beginning of your Site's Tour pages.
The following is an example of a simple redirect script you could set up to do this:
<?php if(empty($_REQUEST['nats'])) { //redirect through track header("Location: " . <track URL>); }
The track URL for Type-In Traffic can be taken from the Site's Admin, listed under the "Default Join Form Link". However you will need to edit it, so it goes through a track link and not to your join form. For example:
Default Join Form Link:
<linkdomain>/signup/signup.php?nats=<?=(!empty($_REQUEST['nats']) && !preg_match('/[\'\"<>()\\\+\[\]]/', $_REQUEST['nats']))?$_REQUEST['nats']:'MC4wLjEuMS4wLjAuMC4wLjA'?>&step=2
You will want to take out signup/signup and replace with /track, and remove the _REQUEST['nats'](since the redirect script will do this already). Then you will want to take out the &step=2 so it does not go to your join form. Lastly, remove the rest until you are left with the following:
<linkdomain>/track/MC4wLjEuMS4wLjAuMC4wLjA
You will need to repeat this for additional sites you want this redirect.