PDA

View Full Version : When using PostAffiliate on one domain and your shopping ...


scp
17th October 2004, 07:18 AM
When using PostAffiliate on one domain and your shopping cart is on another domain ...

Example.

DomainA.com -- Shopping cart domain - with secure check out

DomainB.com -- Contains PostAffiliate Script and Product Page with "Add to Cart" link to Shopping Cart Domain

My understanding is that PostAffiliate needs to create the cookie on the domain where the order is placed? Correct? Or?

Therefore, in this case, the cookie should be set on the shopping cart domain?

So to get PostAffiliate to register commissions I need to point the affiliate ads in PostAffilaite to the shopping cart domain, correct?

If so, I can set a redirect on the shopping cart to go to Product Page on DomainB.com so that it leaves the cookie on the shopping cart domain.

Now, when Post-Affiliate triggers the commission via image tag ... how does it get the cookie if it's left on the shopping cart domain (domainb)?

Or should I set it on the product domain (The same place PostAffiliate is installed)? The shopping cart can then grab it through image tag?

I think I may have answered my own question ... but can you confirm and/or clarify the process?

Thanks,

Jeff

mark
18th October 2004, 05:45 PM
Hello,

the cookie should be checked on the same domain where it was set, otherwise it wil not work.
This doesn't necessarily mean that it has to be domain of shopping cart.
Integration using invisible image in the "thank you" page is example how it can work.

You have
domainA.com with shopping cart, secure checkout and thank you page

domainB.com, with product pages and affiliate system installed.

When user clicks on banner/link, the cookie saved will be valid for domainB.com (because that's where the affiliate system is installed).

When user proceed with order and gets to "thank you" page, he is on domainA.com.
But the invisible image inside the thank you page is from domainB.com, because affiliate system is installed on domainB.com. (it will be something like http://www.domainB.com/affiliate/script/sale.php?OrderID=...)

so everything is fine. Code in the invisible image is able to get the cookie and it will correctly generate commission.

hope it is more clear now.

with regards,

mark