Home > Questions and Answers > General Questions

Fixing up landers (3)


09-14-2020 11:41 AM #1 javi05 (Member)
Fixing up landers

I was trying to fix up a lander i ripped from adplexity and in some places , the code tries to call out the user's information.But it is displaying a blank space when i try to load it .The following is the code -

we select 7 <script> document.write(getURLParameter("browser")) users to participate

alert("Congratulations, "+getURLParameter("browser")+' user!\n\nYou are one of the 7 people selected to participate in our loyalty program.

instead of showing,we select 7 safari users or calling out the browser name.IT IS SAYING " we select 7 users to participate"
I tried to adding the following code to but it didn't work! Any suggestions???

<script>
function getURLParameter(browser)
{
return decodeURI(
(RegExp(browser + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1] || ''
);
}
</script>


09-14-2020 12:34 PM #2 jeremie (Moderator)

Please post the lander url EVERYTIME you have a technical question about a lander, especially if it is a ripped lander. Most people here are happy to help, but not to waste time doing do. It takes me 1-2 min to find the issue when looking at a code, but way longer if i have to ask you one question after another.

Have you tried to call the lander with query parameters?

Code:
 
Domain.com/page.html?browser=safari


09-14-2020 12:39 PM #3 plutus (Member)

You can actually find more details related to your issue in Amy's 40day guide - https://stmforum.com/forum/showthrea...079#post362079
CTRL + F "Add Landers to Voluum"


Home > Questions and Answers > General Questions