Guide MEGA Thread of Useful Landing Page Scripts

Anstrex

Nick

🧙🏻‍♂️ Wizard 🔮
Staff Member
Community Leader
Joined
May 7, 2018
Messages
3,237
At the request of many members, we've decided to create a master thread with useful scripts that you can use on your landing page.

These first few scripts are just the initial ones, but I invite everyone to contribute to this post so we can have a good resource that all AffLift members can use. To contribute, please post your script in a post below. This can be a new script or an improved version of a script we already have. If you contribute a script, I'll add your script to the main post and tag you as a contributor.

Javascript Code

This first section contains mostly Javascript tricks for your landing page.

Insert Tracker Tokens into Landing Page Content (City, State, Country, ISP, IP, Browser, Internet Connection, etc.)

This Javascript will be able to insert any data your tracker has about the user into the landing page content.

Place the following script in between the `<head></head>` HTML tags on the landing page:
JavaScript:
<script>
function getURLParameter(name) {
     return decodeURIComponent(
         (RegExp(name +  '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1] || ''
     );
}
</script>
The following goes in the `<body>` where
 
Last edited:
To view the premium content in our affiliate marketing forum (including this awesome thread), you must first register and upgrade your account. Register today and become a part of our amazing community!
Top