cross-domain cookie tracking issue

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
atom2008
Forum Newbie
Posts: 2
Joined: Sat Jan 10, 2009 12:04 pm

cross-domain cookie tracking issue

Post by atom2008 »

I have implemented a tracking pixel that can be placed on affiliate landing pages that stores a click and subid in the database. Everything is fine, but my boss has asked if we can have a generic pixel such as <img src="somedomain.com/track" height="1" width="1" /> instead of <img src="somedomain.com/track?sid=subid" height="1" width="1" />. With the second link I was able to pass the subid to the receiving script. However, since they have multiple subid's that may affiliate with the same advertiser (landing page offer), they have requested a generic pixel.

At first I thought cookies would be the issue, but they are not cross-compatible. I have looked everywhere for a solution. Am I missing something? Can I send the cookies through the header on redirect? Does anybody have a solution or sample script?

Thanks.
Post Reply