Last active
December 31, 2015 06:48
-
-
Save paperdarwin/7949581 to your computer and use it in GitHub Desktop.
NATS propagation sample code
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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