macromedia.coldfusion.advanced_techniques
[Top] [All Lists]

Re: affiliate reporting

Subject: Re: affiliate reporting
From: GArlington
Date: Wed, 9 Apr 2008 01:41:36 -0700 PDT
Newsgroups: macromedia.coldfusion.advanced_techniques

On Apr 8, 8:44 pm, "masoud_amen" <webforumsu...@xxxxxxxxxxxxxx> wrote:
> Hi.I put the affiliate program in my web site.the code is:
>
>    <form>
>  <textarea cols="60" rows="10" name="affilateSource">
>  <form name="search" action="<CFOUTPUT>#urlPath#Search/index.cfm</CFOUTPUT>"
> method="post"><table background="<CFOUTPUT>#imagePath#</CFOUTPUT><hr /><div
> style="padding-top:11px;padding-left:49px; text-decoration: none;
> color:#6699CC; font-size:12px; font-weight:bold;">Supplements Finder <span
> style="color:#666666; font-size:11px">- Enter Product, Brand, OEM or Product
> #</span></div><div
> style="margin:15px;margin-bottom:3px;margin-left:40px;margin-top:5px;margin-righ
> t:5px"><table width="100%" cellpadding="0" cellspacing="0"
> border="0"><tr><td><input type="text" name="searchValue" value=""
> size="35">&nbsp;<input type="submit" name="searchSubmit" value="Find">
>  <input type="hidden" name="searchAffiliate"
> value="<CFOUTPUT>#UrlEncrypt(session.affiliateInfo.userid,
> encrytionKeyAffiliate)#</CFOUTPUT>"><br><a
> href="<CFOUTPUT>#urlPath#index.cfm?affiliate=#UrlEncrypt(session.affiliateInfo.u
> serid, encrytionKeyAffiliate)#</CFOUTPUT>"><img
> src="http://imedmart.com/images/logoSmall.jpg"; border="0">
>  </td></tr></table></div></td></tr><tr><td><hr></td></tr></table></form>
>  </textarea>
>                                         </form>
>
>  and seems works fine.
>  but I dont know when someone buys something how can I figure out they are
> comming directly  or from one of the affiliates.I got their affiliate_id but I
> dont know how or where I should use it to trace their staus and give their
> commissions.
>  thank u.

Create a session when the visitor comes to your site, store any info
you want to be available for that visitor (incl affiliate_id) in
session scope...

<Prev in Thread] Current Thread [Next in Thread>