Here's a support question I just sent to
When I use
Easy.
Use PHP to do a simple if/else to check for a URL string. If the key voluumdata exists then set click URL to your
You can surely do this with JS as well but I don't know how - should be trivial though!
Since I needed this myself, here is a simple copy/paste solution for you:
Put this code on top of your landing page:
<?php if (isset($_GET["voluumdata"])) $offer = "http://asdf.trackvoluum.com/click"; else $offer = "http://yourofferlink.com"; ?>
<a href="<?= $offer; ?>">Offer Link</a>
Thanks zeno and andyvon. The support team at
I prefer to keep my landing page a simple static page with no PHP. Something similar to this would work with JavaScript...
<!-- Assume we got here via theVoluum URL. --> <a class="offer" href="http://trackvoluum.example.com/click"> <script> // If we didn't get here via the Voluum URL, // then change the offer links to bypass Voluum. var query = window.location.search.substring(1); if (/(^|&)voluumdata=/.test(query) === false) { var links = document.getElementsByClassName('offer'); for (var i = 0; i < links.length; i++) links[i].href = 'http://direct.offerurl.com/'; } </script>