JavaScript On Thank You Page - Won't Track Affiliate

General ShopSite user discussion

JavaScript On Thank You Page - Won't Track Affiliate

Postby helli9 » Thu Mar 25, 2010 12:57 pm

I've been battling this one a long time. I'm using a third party affiliate software program (iDevDirect) and need their JavaScript placed on ShopSite's Thank You page to give credit to my affiliates.

(I'm using ShopSite 10 - Manager)


The code I have loaded in the Thank You page is:

<SCRIPT LANGUAGE="JavaScript">
document.write('<img src=\"https://www.tcpcpartners.com/sale.php?profile=15&idev_saleamt=' +ss_subtotal+ '&idev_ordernum=' +ss_ordernum+ '\" width=\"1\" height=\"1\">');
</script>



The .html code I get on the Thank You page when I test is:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>

<title>Thank you!</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META NAME="robots" CONTENT="noindex,nofollow">

<script type="text/javascript" language="JavaScript">
<!--
var ss_ordernum = "1288";
var ss_ordertotal = "1.05";
var ss_subtotal = "1.00";
// -->
</script>



But the affiliate software is still not tracking orders?!? Any advice to potentially trouble-shoot this?

Randall
helli9
 
Posts: 10
Joined: Thu Mar 25, 2010 12:37 pm
Location: Olathe, KS

* Update *

Postby helli9 » Thu Mar 25, 2010 2:21 pm

I hard coded:

<script type="text/javascript" language="JavaScript">

document.write('<img src=\"https://www.tcpcpartners.com/sale.php?profile=15&idev_saleamt=' +1.00+ '&idev_ordernum=' +2000+ '\" width=\"1\" height=\"1\">');

</script>



The .html source code on the Thank You page listed:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>

<title>Thank you!</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META NAME="robots" CONTENT="noindex,nofollow">

<script type="text/javascript" language="JavaScript">
<!--
var ss_ordernum = "1297";
var ss_ordertotal = "1.05";
var ss_subtotal = "1.00";
// -->
</script>
helli9
 
Posts: 10
Joined: Thu Mar 25, 2010 12:37 pm
Location: Olathe, KS

Postby loren_d_c » Thu Mar 25, 2010 2:33 pm

Your original code was better. If you're hard-coding the values into the URL then you shouldn't have the hard-coded values outside of the quote marks. So more like this:


Code: Select all
<script type="text/javascript" language="JavaScript">

document.write('<img src=\"https://www.tcpcpartners.com/sale.php?profile=15&idev_saleamt=1.00&idev_ordernum=2000\" width=\"1\" height=\"1\">');

</script>


In fact, if you are hard-coding the values, you don't need JavaScript at all, just the image tag:

Code: Select all
<img src="https://www.tcpcpartners.com/sale.php?profile=15&idev_saleamt=1.00&idev_ordernum=2000" width="1" height="1">


So is this tracking application tracking all sales? Or just sales that come through a particular link, like an affiliate link? If the later, make sure you actually went through one of those affiliate links first before your order. Also, make sure you have cookies enabled, since these types of tracking systems usually require cookies to work well.

-Loren
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

** Update **

Postby helli9 » Thu Mar 25, 2010 4:36 pm

Thanks Loren...

This has been a troubling issue - sorry for being long-winded. I believe that you are keying on one of my concerns that everyone seems to tell me is 'okay'.

This is a tracking application that is tracking all sales from individual SEO affiliate links. (i.e. www.thecarepakcompany.com/100.html).

I have a main web hosting account at (hellingent.com). This is the account that ShopSite is installed on. In the root directory of this account, I maintain an .htaccess file that configures the individual SEO affiliate links.

I have a child web within (hellingent.com) called (thecarepakscompany.com). I have a domain pointer going to this child web. (I did this to save cost instead of paying for two web hosting accounts.) The child web is utilizing ShopSite which is installed on the main web host.

Now, to avoid frustrations/conflicts, I hosted the affiliate software on the affiliate software company's web hosting plan so that they could easily install the software and configure it correctly, etc. (tcpcpartners.com).

So...an affiliate should sign-up at (tcpcpartners.com) and receive an affiliate tracking link. The tracking link is for (thecarepakscompany.com). A client goes through that link and orders. Orders are processed through ShopSite which is loaded on (hellingent.com).

** The only problem is that the affiliate isn't getting credit?! **

I have tested the affiliate links in FireFox, in Explorer, with Vista, etc. I've enable JavaScript, I've tried a number of different things...

Everyone says it looks good - should work. The affiliate software vender tested everything by hard coding...and commissions showed up. It worked perfectly. But when the code went back into ShopSite's Thank You page - it ceased to correctly log commissions again. It simply isn't calling the pixel.

The third party vendor says it's configuration issues with the web host.
The web host says it's configuration issues with ShopSite.
ShopSite says it's a configuration issue with the third party.

(I wish one of these parties would incorporate Walmart customer service policies...)

ANY advice on where to go from here would be appreciated.

Randall
helli9
 
Posts: 10
Joined: Thu Mar 25, 2010 12:37 pm
Location: Olathe, KS

Postby loren_d_c » Fri Mar 26, 2010 9:26 am

First, did you know that your secure URL starting with https://www.tcpcpartners.com is not really correct? The cert for that server is for the domain tcpcpartners.com (no www), so your secure URL for the tracking pixel should start with https://tcpcpartners.com. I'm not saying this is your entire problem, but it could prevent some browsers from allowing that domain from reading any cookies that may be set on your system.

Also, your thankyou screen is on the secure domain https://helli9.sslcert19.com. Are there any settings in your affiliate program that limit what domains the tracking can come from, and if there is such a setting, is this domain included?

Also, since the tracking pixel is coming from a different domain than the page that it is on, the cookie could be considered to be a 'third-party' cookie by your browser. Make sure these kinds of cookies are allowed in your browser security settings.
loren_d_c
 
Posts: 2572
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum

Who is online

Users browsing this forum: No registered users and 9 guests