thanks for the quick reply. i'm not sure if what i desire would require coding changes or just some guidance.
since i use LPGen and XConversions, i use sudIds to track keywords and sales. normally i would create an affiliate link on my landing page, appending the specific variable for the affiliate market's subId. something like:
http://www.affiliatecompany1.com/path/offer.html?sid=%%xc%%
if you don't use XConversions, the %%xc%% token just inserts this php code:
obviously since this is a hard-coded link everything works as it should. i'm assuming that if i use your code and send to two pages before the affiliate landing page that the sid will be lost in the process. also, since i have the ability to rotate a list of offers, the %%xc%% token would need to be dynamically assigned to a list of offer URLs, for example:
http://www.affiliatecompany1.com/path/offer.html?sid=
http://www.affiliatecompany2.com/path/offer.html?s=
http://www.affiliatecompany3.com/path/offer.html?tid=
as you probably know, different affiliate networks use different variables to represent subIds (sid=, s=, tid=, etc). the important thing is to pass that %%xc%% value to the end of any offer URL in the random list, like this:
http://www.affiliatecompany1.com/path/offer.html?sid=%%xc%%
http://www.affiliatecompany2.com/path/offer.html?s=%%xc%%
http://www.affiliatecompany3.com/path/offer.html?tid=%%xc%%
my thought was that the %%xc%% token would need to included in the link to URL1 of the doublemetarefresh, to eventually pass to URL2 and on to the random offer chosen, like so:
a link from
http://www.mylandingpage.com
to
http://www.URL1.com?track=%%xc%%
to
http://www.URL2.com?track=%%xc%%
to (randomly chosen offer)
http://www.affiliatecompany2.com/path/offer.html?s=%%xc%%
like i said, i don't know if this can be done with a simple explanation how to do this or my guess is that the code for URL1 and URL2 would need to be slightly modified to keep this %%xc%% token passing all the way thru.
hope this makes sense and thanks!