Hi everyone!
I have never made pre-lands. I watch the code of some of them, but some tthings I don't understand.
1. I see simple and clear way to send parameters from preland to landing page
BUT I've seen some of pre-lands before and code was much much difficult.
Should I avoid JS to send the parameters? If yes, could you give me good example of the code.
2. I want to use JS instead PHP or another server side language to reduce load for the server. Does it make sense? Or the load will be rather the same
I'll be appreciated for any bit of information regarding the questions below.
I have never made pre-lands. I watch the code of some of them, but some tthings I don't understand.
1. I see simple and clear way to send parameters from preland to landing page
How to transfer all the parameters through a landing or prelanding page?
Solution on PHP:
<a href="LINK/?id=123&<?= http_build_query($_GET) ?>">URL</a>
Solution on JS:
<script>document.write('<a href="LINK/?affid=123&' + window.location.search.replace('?', '') + '">URL</a>'</script>
Solution on PHP:
<a href="LINK/?id=123&<?= http_build_query($_GET) ?>">URL</a>
Solution on JS:
<script>document.write('<a href="LINK/?affid=123&' + window.location.search.replace('?', '') + '">URL</a>'</script>
Should I avoid JS to send the parameters? If yes, could you give me good example of the code.
2. I want to use JS instead PHP or another server side language to reduce load for the server. Does it make sense? Or the load will be rather the same
I'll be appreciated for any bit of information regarding the questions below.