Jump to content

Pixel Tracking


danx30

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.