Adding Google and Overture conversion scripts

This is an archive of old posting to the User Forum

Adding Google and Overture conversion scripts

Postby James Terra » Wed Sep 15, 2004 9:57 am

Anybody added the Google or overture sciptes to their Shopsite for
conversion tracking?

We have tried even with our developer and haven't been able to succeed!

Help!!

Jim Terra
jterra@qualityflags.com
http://www.qualityflags.biz
James Terra
 

Re: Adding Google and Overture conversion scripts

Postby Dave's Discount Motors » Wed Sep 15, 2004 1:15 pm

Hello Jim,

For adding the Overture tracking, you'll need to use a custom checkout CGI
to write the necessary tracking information into the header of the page
generated when an order is completed.

Send me an email at webmaster@davesmotors.com and I can give you more
details.


"James Terra" <jterra@qualityflags.com> wrote in message
news:ci9s9l$j9d$1@eval.shopsite.com...
Anybody added the Google or overture sciptes to their Shopsite for
conversion tracking?

We have tried even with our developer and haven't been able to succeed!

Help!!

Jim Terra
jterra@qualityflags.com
http://www.qualityflags.biz

Dave's Discount Motors
 

Re: Adding Google and Overture conversion scripts

Postby Psage » Thu Sep 16, 2004 4:02 am

That seems odd.

Can't you just copy the code into your page anywhere? I do that on Yahoo
Store and it works fine.


"Dave's Discount Motors" <webmaster@davesmotors.com> wrote in message
news:cia7tn$orh$1@eval.shopsite.com...
Hello Jim,

For adding the Overture tracking, you'll need to use a custom checkout CGI
to write the necessary tracking information into the header of the page
generated when an order is completed.

Send me an email at webmaster@davesmotors.com and I can give you more
details.


"James Terra" <jterra@qualityflags.com> wrote in message
news:ci9s9l$j9d$1@eval.shopsite.com...
Anybody added the Google or overture sciptes to their Shopsite for
conversion tracking?

We have tried even with our developer and haven't been able to succeed!

Help!!

Jim Terra
jterra@qualityflags.com
http://www.qualityflags.biz



Psage
 

Re: Adding Google and Overture conversion scripts

Postby loren_d_c » Thu Sep 16, 2004 8:28 am

You might be able to if you have ShopSite Pro v7.0. It depends on the
code the 3rd party (Overture, etc) provides. If it is just JavaScript
and has a variable that represents the amount of the sale, you should be
able to just put the conversion code somewhere on the thankyou screen
and replace that JavaScript variable in the 3rd-party code with the
corresponding one that ShopSite Pro v7 sets up in the head section of
the thankyou page that contains the amount of the order.

If the tracking program uses HTML (for example, many tracking programs,
especially affiliate tracking programs, use an image tag to pass the
order variables back to their tracking system), then you will have to
write your own JavaScript code that prints out that HTML with the
JavaScript variables mentioned above in the correct places in the HTML
code.

Note that not all shoppers will have JavaScript turned on in their
browsers (although most probably will), so if your tracking company
provides an HTML collection method rather than JavaScript and you don't
want to throw JavaScript in the mix because some shoppers may not have
it turned on, then you would have to use some other means to dynamically
get the amount of the order into the HTML, and that means a script
written for the ShopSite Pro Order API feature.

And if you have an older version of ShopSite Pro than v7.0, then Order
API would be your only option because having many of the order variables
already setup in JavaScript variables in the head section of the
shopping cart screens ready for you to use for things like this was new
in v7.

-Loren



Psage wrote:
That seems odd.

Can't you just copy the code into your page anywhere? I do that on Yahoo
Store and it works fine.


"Dave's Discount Motors" <webmaster@davesmotors.com> wrote in message
news:cia7tn$orh$1@eval.shopsite.com...

Hello Jim,

For adding the Overture tracking, you'll need to use a custom checkout CGI
to write the necessary tracking information into the header of the page
generated when an order is completed.

Send me an email at webmaster@davesmotors.com and I can give you more
details.


"James Terra" <jterra@qualityflags.com> wrote in message
news:ci9s9l$j9d$1@eval.shopsite.com...

Anybody added the Google or overture sciptes to their Shopsite for
conversion tracking?

We have tried even with our developer and haven't been able to succeed!

Help!!

Jim Terra
jterra@qualityflags.com
http://www.qualityflags.biz





loren_d_c
 
Posts: 2571
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere

Re: Adding Google and Overture conversion scripts

Postby Dave's Discount Motors » Thu Sep 16, 2004 7:57 pm

Here's one wasy way to handle this:

A script such as this one - I call it overture.cgi - will take care of your
needs. Note that the script does nothing if the paytype is 7 (paypal) in
order to avoid interference.

To make sure you count conversions accurately, you want them to be tracked
once an order is completed i.e. on the dynamically generated thank you page.
Thus, you'll need the Shopsite tags in the HEAD section of the page.

Upload the script to the /sc (or wherever your custom CGI location is)
directory and make sure it has the right permissions.
In your ShopSite control panel, select Merchandising => Order API. Place the
name of the script in the 'Custom CGI Filename(s)' field. Now, it will
execute and write the necessary tag into the <head> section of all your
completed orders.

#!/usr/bin/perl

use CGI;

$input = new CGI;

$pay = $input->param('paytype');

if ($pay == 7) {exit;}

print "Content-type: text/html\n\n";

print <<EOM;

<html>

<head>

<title>Thank you!</title>

INSERT THE OVERTURE GENERATED CONVERSION CODE HERE

</head>

<body bgcolor="#FFFFFF">

EOM

print "<!-- \n";

1;



"Loren" <loren_d_c@yahoo.com> wrote in message
news:cicbdq$gik$1@eval.shopsite.com...
You might be able to if you have ShopSite Pro v7.0. It depends on the code
the 3rd party (Overture, etc) provides. If it is just JavaScript and has a
variable that represents the amount of the sale, you should be able to
just put the conversion code somewhere on the thankyou screen and replace
that JavaScript variable in the 3rd-party code with the corresponding one
that ShopSite Pro v7 sets up in the head section of the thankyou page that
contains the amount of the order.

If the tracking program uses HTML (for example, many tracking programs,
especially affiliate tracking programs, use an image tag to pass the order
variables back to their tracking system), then you will have to write your
own JavaScript code that prints out that HTML with the JavaScript
variables mentioned above in the correct places in the HTML code.

Note that not all shoppers will have JavaScript turned on in their
browsers (although most probably will), so if your tracking company
provides an HTML collection method rather than JavaScript and you don't
want to throw JavaScript in the mix because some shoppers may not have it
turned on, then you would have to use some other means to dynamically get
the amount of the order into the HTML, and that means a script written for
the ShopSite Pro Order API feature.

And if you have an older version of ShopSite Pro than v7.0, then Order API
would be your only option because having many of the order variables
already setup in JavaScript variables in the head section of the shopping
cart screens ready for you to use for things like this was new in v7.

-Loren



Psage wrote:
That seems odd.

Can't you just copy the code into your page anywhere? I do that on Yahoo
Store and it works fine.


"Dave's Discount Motors" <webmaster@davesmotors.com> wrote in message
news:cia7tn$orh$1@eval.shopsite.com...

Hello Jim,

For adding the Overture tracking, you'll need to use a custom checkout
CGI
to write the necessary tracking information into the header of the page
generated when an order is completed.

Send me an email at webmaster@davesmotors.com and I can give you more
details.


"James Terra" <jterra@qualityflags.com> wrote in message
news:ci9s9l$j9d$1@eval.shopsite.com...

Anybody added the Google or overture sciptes to their Shopsite for
conversion tracking?

We have tried even with our developer and haven't been able to succeed!

Help!!

Jim Terra
jterra@qualityflags.com
http://www.qualityflags.biz




Dave's Discount Motors
 

Re: Adding Google and Overture conversion scripts

Postby Psage » Fri Sep 17, 2004 5:35 am

Just in case it's not me who's confused here:

You don't have to put any of these codes in the <head> of your document. You
can put them anywhere.

So if you have ANY place where you can put some code on your page, just
paste it in there and it will work. For example, I have something like this
pasted into the middle of my order confirmation page on Yahoo and it works
fine for both:

<img height="1" width="1"
src="https://www.googleadservices.com/pagead/conversion/###########/?hl=en">
<SCRIPT LANGUAGE="JavaScript">
<!-- Overture Services Inc. 07/15/2003
var cc_tagVersion = "1.0";
var cc_accountID = "#########";
var cc_marketID = "0";
var cc_protocol="http";
var cc_subdomain = "convctr";
if(location.protocol == "https:")
{
cc_protocol="https";
cc_subdomain="convctrs";
}
var cc_queryStr = "?" + "ver=" + cc_tagVersion + "&aID=" + cc_accountID +
"&mkt=" + cc_marketID +"&ref=" + escape(document.referrer);
var cc_imageUrl = cc_protocol + "://" + cc_subdomain +
".overture.com/images/cc/cc.gif" + cc_queryStr;
var cc_imageObject = new Image();
cc_imageObject.src = cc_imageUrl;
// -->
</SCRIPT>

"Dave's Discount Motors" <webmaster@davesmotors.com> wrote in message
news:cidjsa$19e$1@eval.shopsite.com...
Here's one wasy way to handle this:

A script such as this one - I call it overture.cgi - will take care of
your
needs. Note that the script does nothing if the paytype is 7 (paypal) in
order to avoid interference.

To make sure you count conversions accurately, you want them to be tracked
once an order is completed i.e. on the dynamically generated thank you
page.
Thus, you'll need the Shopsite tags in the HEAD section of the page.
Psage
 


Return to User Forum Archive

Who is online

Users browsing this forum: No registered users and 24 guests