Skip to content

Instantly share code, notes, and snippets.

@paperdarwin
Last active December 31, 2015 06:48
Show Gist options
  • Save paperdarwin/7949581 to your computer and use it in GitHub Desktop.
Save paperdarwin/7949581 to your computer and use it in GitHub Desktop.
NATS propagation sample code
<?php
/**
* - NATS value should be read first on the cookie, before the GET variables. If it is not defined, then a default value should be provided
* - For each tour, there is a default NATS value which is in NATS admin
* - ALL links in any tour should propagate the NATS variable
**/
?>
$nats = isset($_REQUEST['nats']) ? $_REQUEST['nats'] : 'My4yLjEuMS4wLjAuMC4wLjA';
<a href="target.php?nats=<?php echo $nats; ?>">Join Link</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment