MaxWeb is one of the best affiliate networks in the world, representing some of the top advertisers in the industry. Get started today!

Newbies have some questions about landing pages

AlexWalker

Lurker
Joined
Apr 4, 2024
Messages
8
Hello there, I just created my first landing page today

But I had some questions.

First i'm using Binom.

I try to use this way to integrated landing pages



1715443531278-png.51393


But it's really slow access.

Now I'd like to use cloudflare to host the landing page, but another question that comes up is whether my Offer Link needs to use Js in the page to get the URL path parameter to complete the jump.

For example, if my OfferLink is https://offerlink.com/click?id=xxx&clickid={clickid},
do I need to get the current path parameter of the landing page,
get the clickid,
and replace it with {clickid} to ensure the tracking process is complete?

Like this,


JavaScript:
//  Function to get URL parameter by  name
function getURLParameter(name) {
     let regex = new RegExp('[\\?&]' +  name + '=([^&#]*)');
     let results = regex.exec(location.search);
     return results === null ?  '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
}

// Get  'clickid' from the current URL
var clickid  = getURLParameter('clickid');

// Define the base URL  for the redirection
var baseUrl = "https://offerLink.com/click";

//  Check if 'clickid' is found and  not empty
if (clickid) {
     // Construct the full URL  with the dynamically replaced 'clickid'
     var fullUrl = baseUrl
 
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