In order to reward affiliates for referring members, should the affiliate link be set to go to the page that contains the s2member sign-up form?
Or can it continue to track if it goes to the homepage and after some clicking around? Because I noticed in an initial test that the ?wpam_id gets dropped after clicking away from the landing page set by the affiliate link.
Or, after landing on the initial landing page containing the ?wpam_id parameter, is there a way to keep it in the URL regardless of any clicking around?
Many thanks
Trevor
Update: Presuming that the ?wpam_id parameter needs to be in any URL in order to make sure my affiliates get rewarded I just added a JQuery snippet to preserve the parameter no matter where a user might be clicking around, as such, and it seems to do the trick:
$("a").click(function(e) {
e.preventDefault();
var params = window.location.search,
dest = $(this).attr('href') + params;
// in my experience, a short timeout has helped overcome browser bugs
window.setTimeout(function() {
window.location.href = dest;
}, 100);
});
@jkdsouljah, It’s normal for the parameter to disappear when you browse to a different page. The tracking is done when a user first lands on a page on your site.
https://wpaffiliatemanager.com/cookie-duration-use/
@affmngr oh, great. So I don’t need to try and keep the parameter in the URL, and it will still be tracked no matter where they go before signing up?