Click Tracking/Conversion code

This is an archive of old posting to the User Forum

Click Tracking/Conversion code

Postby Steve Doherty » Sun Feb 02, 2003 2:15 pm

short version:

What is the code or variable, if any, of the total purchase amount being
passed to the thank you page? I need to capture it for use with a click
conversion tracking program.


long version:

I want to use ProAnalyzer (http://www.proanalyzer.com) to track clicks to my
site and to track sales. In their FAQ
(http://www.proanalyzer.com/faq.html#code), it says...
..............
The tracking code (the html tag used to track sales & actions), is actually
a tiny 1x1 invisible gif.

For example, your tracking codes will look similar to the following:

<img src="/cgi-bin/proanalyzer/action.cgi?action=sale&amount=97.00"
width="1" height="1">
(for tracking sales)
.............

I asked them "This looks like I need to know ahead of time how much the
customer is going to purchase, can I track the amount the customer actually
purchases?

They said...

............
If your ordering system can pass variables to your "thankyou page", then you
can pass the amount directly into the tracking code.

For example, if your software passed variables by using %% tags (allot of
shopping cart systems do it this way), it could look like the following
code, and still function correctly:

<img src="/cgi-bin/proanalyzer/action.cgi?action=sale&amount=%amount%"
width="1" height="1">

................

So, what code or variable could I use, with ShopSite Pro 6.2.1, for the sale
amount, and on what page would I use it? Any suggestions?

Thanks,

Steve Doherty
www.mobileuniverse.com
Steve Doherty
 

Re: Click Tracking/Conversion code

Postby Rob » Sun Feb 02, 2003 8:07 pm

Steve,

You need to use the order API functionality of ShopSite to accomplish this.
This involves writing a cgi script that will output the correct code with
the order total included in the code.

The variable you will be interested in is:
F-ProductTotal : The total price of all products in the order, before any
discounts, surcharges, tax, and shipping.
http://www.shopsite.com/help/6.2/en-US/ ... r.api.html

Here is a simple perl script that outputs the total in the format you
described:
---
#!/usr/bin/perl

use CGI;

$var = new CGI;

print "Content-type: text/html\n\n";
print "<HTML><HEAD><TITLE>Thank you!</TITLE></HEAD><BODY>";

print "<img
src=\"/cgi-bin/proanalyzer/action.cgi?action=sale&amount=$var->param('F-Prod
uctTotal')\" width=\"1\" height=\"1\">";

print "<!-- \n";
exit;
---

This little snippet will output the required img call with the Product Total
inserted in the correct location. This should help you get going in the
right direction.

Rob

What is the code or variable, if any, of the total purchase amount being
passed to the thank you page? I need to capture it for use with a click
conversion tracking program.
Rob
 

Re: Click Tracking/Conversion code

Postby Steve Doherty » Mon Feb 03, 2003 8:42 am

Rob,

Thanks very much! I appreciate your help with the actual code. I will see if
I can make that work.

Steve

"Rob" <rob@mangiafico.net> wrote in message
news:b1kit4$ntg$1@support.shopsite.com...
Steve,

You need to use the order API functionality of ShopSite to accomplish
this.
This involves writing a cgi script that will output the correct code with
the order total included in the code.

The variable you will be interested in is:
F-ProductTotal : The total price of all products in the order, before any
discounts, surcharges, tax, and shipping.
http://www.shopsite.com/help/6.2/en-US/ ... r.api.html

Here is a simple perl script that outputs the total in the format you
described:
---
#!/usr/bin/perl

use CGI;

$var = new CGI;

print "Content-type: text/html\n\n";
print "<HTML><HEAD><TITLE>Thank you!</TITLE></HEAD><BODY>";

print "<img

src=\"/cgi-bin/proanalyzer/action.cgi?action=sale&amount=$var->param('F-Prod
uctTotal')\" width=\"1\" height=\"1\">";

print "<!-- \n";
exit;
---

This little snippet will output the required img call with the Product
Total
inserted in the correct location. This should help you get going in the
right direction.

Rob

What is the code or variable, if any, of the total purchase amount being
passed to the thank you page? I need to capture it for use with a click
conversion tracking program.


Steve Doherty
 


Return to User Forum Archive

Who is online

Users browsing this forum: No registered users and 9 guests