danx30 Posted March 9, 2007 Share Posted March 9, 2007 Okay, here is what I'm doing/trying to do. I have a php website that tracks a users name and what link they click and I record this into a mysql database. I've recently setup with an affiliate program that allows pixel tracking and I wanted to record signups from that into my sql also. I know I can use a simple php script to do this, but how can I get it to also pass the users name? I don't think I'm explaining this right. Once a user clicks a link on my page it records that click under that persons username into my sql database. Then it brings up the affiliate page. Once someone fills out the form and clicks submit I can have a pixel tracking code in there to record but since I'm on another page it never passed the username so how do I record it into the right spot? Maybe using frames? Any advice would be appreciated Dan Link to comment https://forums.phpfreaks.com/topic/42049-pixel-tracking/ Share on other sites More sharing options...
danx30 Posted March 10, 2007 Author Share Posted March 10, 2007 Hmm, I guess I didn't explain it correctly what I'm trying to do. So let me try yet again. When someone visits my website my php script copies their username into a mysql database. When they click on a link it copies the link into the database under their username. If a user of my website clicks a link to an affiliate I want to be able to track if they actually signup for that affiliate. The affiliate allows pixel tracking. If I setup the tracking as a php file, how would I then parse the users name to the file so I can record their transaction into my database in the right place? Since once they leave my site that info won't be sent along to the affiliate. Is that a little more clear? Dan Link to comment https://forums.phpfreaks.com/topic/42049-pixel-tracking/#findComment-204084 Share on other sites More sharing options...
JBalius Posted March 10, 2007 Share Posted March 10, 2007 So you want to be able to track if the user signed up on a website that is not yours and if they did for you to get the username? Link to comment https://forums.phpfreaks.com/topic/42049-pixel-tracking/#findComment-204139 Share on other sites More sharing options...
danx30 Posted March 10, 2007 Author Share Posted March 10, 2007 No no, the visitors of my website already have a username that is stored in my sql database, I want to track when they visit a sponsor if they signup or not. Link to comment https://forums.phpfreaks.com/topic/42049-pixel-tracking/#findComment-204174 Share on other sites More sharing options...
Orio Posted March 10, 2007 Share Posted March 10, 2007 I may be wrong, but I don't think you can do that unless your sponsors cooperate and help you do that. Orio. Link to comment https://forums.phpfreaks.com/topic/42049-pixel-tracking/#findComment-204175 Share on other sites More sharing options...
danx30 Posted March 10, 2007 Author Share Posted March 10, 2007 The sponsors allow me to add a pixel tracking code to the conformation page after someone signs up, so I was wondering if there was some way to use that to do what I wanted. Link to comment https://forums.phpfreaks.com/topic/42049-pixel-tracking/#findComment-204198 Share on other sites More sharing options...
superuser2 Posted March 10, 2007 Share Posted March 10, 2007 What do you mean by pixel tracking code? If they'll let you execute PHP code and tell you what session variable the username is stored in then we can help you. Without executing PHP code on their server, there's no way to do it. Link to comment https://forums.phpfreaks.com/topic/42049-pixel-tracking/#findComment-204214 Share on other sites More sharing options...
mattd8752 Posted March 10, 2007 Share Posted March 10, 2007 On the page that you link to, you'd start a session, on the confirmation page, you'd set it up to email [email protected] [email protected] could be read through IMAP in PHP. Just take a look at any of the already existing mail clients. Link to comment https://forums.phpfreaks.com/topic/42049-pixel-tracking/#findComment-204218 Share on other sites More sharing options...
legohead6 Posted March 15, 2007 Share Posted March 15, 2007 can you insert code into the sponsers registration page? Link to comment https://forums.phpfreaks.com/topic/42049-pixel-tracking/#findComment-208232 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.