Hello, I have affiliate tracking software that uses a conversion tracking pixel (image and/or javascript) to record sales on product websites. The javascript pixel just looks for a cookie on a users PC when they land on the purchase confirmation page and records the data to my tracking software. What I need is a custom javascript that will load both my tracking pixel as well as a tracking pixel belonging to one of my traffic partners so they can track sales as well. I need this because most product websites will only allow me to place a single pixel on their site. This solution would also allow me to add/delete multiple traffic partners without the product website having to add/delete several pixels. To determine which traffic partner pixel needs to be loaded, the script will need to read from some sort of file on my server. i.e. If cookie on user's PC named X contains a value of Y then load my pixel as well as tracking pixel Z. Thanks for any interest.
Hey, funny I found this post. I'm not sure if you still need the code for this, but I wrote a simple PHP script this morning that will do exactly what you're looking for : If cookie X is on users computer, load X script. If cookie Y is on users computer, load Y script. It can be easily modified to load multiple pixels. I assume you need this because you work with multiple CPA ad networks and they told you about the possibility of duplicate orders occuring if a user visits a tracking link through two networks and then makes a purchase. Well, this little script I wrote solves that problem completely. If you are interested, just reply and I'll post up the code here.
Here are some clearer requirements. =================== I have affiliate tracking software that uses a conversion tracking pixel (image and/or javascript) to record sales for product websites I am promoting. PIXEL EXAMPLE: <img src="https://secure.examplesite.com/pixel/pixel.php?siteid=1030" height="1" width="20"></img> The tracking pixel just looks for a specific cookie on a users PC when they land on the purchase confirmation page and records the data from the cookie to my affiliate tracking software. What I need is a custom javascript to put on the product purchase confirmation page that will: 1. Read a cookie on the users PC with a specific name AND 2. Within that cookie, if a parameter named "XXX" has a value of "XXXX" THEN 3. Load BOTH my tracking pixel as well as a second tracking pixel on the page. 4. The second tracking pixel loaded will be determined by matching the parameter value in the cookie with the same value in a database on my server. i.e. If parmaeter value in cookie = 1234 then load pixel associated with 1234 from my MYSQL database or text file. 5. If a matching value for the cookie parameter is not found in my MYSQL database/text file then the script should load my pixel only. 6. The script should be fast so that it does not interfere with the performance of the product site. 7. It must have a simple admin interface that allows me to add/delete/edit pixels and their corresponding cookie values. Thanks for the interest.
I am aware of the fact that this thread was from long ago... But I am looking for the same solution -- anybody out there who can help me out with this ?