shopsite and shareasale affiliate program

General ShopSite user discussion

shopsite and shareasale affiliate program

Postby Rodney Blackwell » Tue Jun 14, 2005 7:03 pm

I manage my affiliate program for my store through ShareASale.com and in
order for their tracking to work, I need to add the following code to the
final thank you page.

Can anyone tell me which page within the ShopSite commerce setup that I
should be editing, and if it's possible to pull fields from the order as
"tags" to include in the code to replace AMOUNTOFSALE with the sale subtotal
and TRACKINGNUMBER with the order number:

<img
src=https://shareasale.com/sale.cfm?amount=AMOUNTOFSALE&tracking=TRACKINGNUMBER&transtype=TYPEOFTRANSACTION&merchantID=GOESHERE
width="1" height="1">


I'm assuming it should be put on the "Thank You Page" where it says: "Text
at the top of the Thank You screen:"

But I'm not sure if I can pull the order subtotal and order number on that
page?

Thanks in advance,

Rodney
Rodney Blackwell
 

Re: shopsite and shareasale affiliate program

Postby jim » Tue Jun 14, 2005 9:10 pm

Rodney,

If you have a ShopSite Pro version 7.x store you an use the javascript
variables that are included on the thankyou page. You can read about
them here: http://www.shopsite.com/help/7.1/en-US/ ... ables.html

You would probably use ss_ordernum for the TRACKINGNUMBER and
ss_subtotal for the AMOUNTOFSALE (unless you need to include
shipping,tax etc then you would use ss_ordertotal)

For versions 6.x and earlier you would need a Pro level store and would
use the OrderAPI functionality.

This functionality isn't available for starter or manager level stores.

Jim

Rodney Blackwell wrote:
I manage my affiliate program for my store through ShareASale.com and in
order for their tracking to work, I need to add the following code to the
final thank you page.

Can anyone tell me which page within the ShopSite commerce setup that I
should be editing, and if it's possible to pull fields from the order as
"tags" to include in the code to replace AMOUNTOFSALE with the sale subtotal
and TRACKINGNUMBER with the order number:

img
src=https://shareasale.com/sale.cfm?amount=AMOUNTOFSALE&tracking=TRACKINGNUMBER&transtype=TYPEOFTRANSACTION&merchantID=GOESHERE
width="1" height="1"


I'm assuming it should be put on the "Thank You Page" where it says: "Text
at the top of the Thank You screen:"

But I'm not sure if I can pull the order subtotal and order number on that
page?

Thanks in advance,

Rodney

jim
 

Re: shopsite and shareasale affiliate program

Postby Rodney Blackwell » Tue Jun 14, 2005 9:56 pm

Thanks Jim, I'm running shopsite pro version 7.x.

I was looking at the javascript variables documentation, but it didn't seem
to explain exactly how I should use them in practice.

Do they need to be wrapped in some sort of javascript to work, do they need
a tag around them?

Or would I just simple change the tracking code I had to:

<img
src=https://shareasale.com/sale.cfm?amount=ss_subtotal&tracking=ss_ordernum&transtype=TYPEOFTRANSACTION&merchantID=GOESHERE
width="1" height="1">


And the above will work on the thank you page?
--
Rodney

"jim" <jstavast@xmission.com> wrote in message
news:d8o9oi$isv$1@eval.shopsite.com...
Rodney,

If you have a ShopSite Pro version 7.x store you an use the javascript
variables that are included on the thankyou page. You can read about them
here: http://www.shopsite.com/help/7.1/en-US/ ... ables.html

You would probably use ss_ordernum for the TRACKINGNUMBER and ss_subtotal
for the AMOUNTOFSALE (unless you need to include shipping,tax etc then
you would use ss_ordertotal)

For versions 6.x and earlier you would need a Pro level store and would
use the OrderAPI functionality.

This functionality isn't available for starter or manager level stores.

Jim

Rodney Blackwell wrote:
I manage my affiliate program for my store through ShareASale.com and in
order for their tracking to work, I need to add the following code to the
final thank you page.

Can anyone tell me which page within the ShopSite commerce setup that I
should be editing, and if it's possible to pull fields from the order as
"tags" to include in the code to replace AMOUNTOFSALE with the sale
subtotal and TRACKINGNUMBER with the order number:

img
src=https://shareasale.com/sale.cfm?amount=AMOUNTOFSALE&tracking=TRACKINGNUMBER&transtype=TYPEOFTRANSACTION&merchantID=GOESHERE
width="1" height="1"


I'm assuming it should be put on the "Thank You Page" where it says:
"Text at the top of the Thank You screen:"

But I'm not sure if I can pull the order subtotal and order number on
that page?

Thanks in advance,

Rodney
Rodney Blackwell
 

Re: shopsite and shareasale affiliate program

Postby Jim » Wed Jun 15, 2005 9:48 pm

It's not as simple as just adding the variables to the url. I don't
know javascript so can't be of much help. Here is a sample of some code
one of our engineers said might work.

<img name=test src="none"><br>
<script type="text/javascript" language="JavaScript">
document.text.src="https://shareasale.com/sale.cfm?amount="
+ ss_subtotal + "&tracking=" +
ss_ordernum + "&transtype=TYPEOFTRANSACTION&merchantID=GOESHERE"
// --> </script>

The line <image name=test src="none"> sets up an image that will be
filled in by the javascript in the next 5 lines. The variables ss_tota
and ss_ordernum are concatenated with the rest of the required url
parameters to make the complete url. The complete url is substituted for
the "none" in the <img name...> line.

Give that a try and see if it works. If not maybe someone else on the
list can suggest and alternative way.

Jim

Rodney Blackwell wrote:
Thanks Jim, I'm running shopsite pro version 7.x.

I was looking at the javascript variables documentation, but it didn't seem
to explain exactly how I should use them in practice.

Do they need to be wrapped in some sort of javascript to work, do they need
a tag around them?

Or would I just simple change the tracking code I had to:

img
src=https://shareasale.com/sale.cfm?amount=ss_subtotal&tracking=ss_ordernum&transtype=TYPEOFTRANSACTION&merchantID=GOESHERE
width="1" height="1"


And the above will work on the thank you page?
Jim
 

Re: shopsite and shareasale affiliate program

Postby Rodney Blackwell » Wed Jun 15, 2005 10:56 pm

Thanks again, Jim.

I wrote to shareasale and they sent me some similar javascript (except
theirs did not have the first <image name=test src="none"> line).

Was I supposed to edit the "none" part or just paste it as is?

I pasted it as is and I had the same problem with the js code from
shareasale. It doesn't seem like the javascript is getting parsed on the
Thank You page.

Is this a bug in shopsite (not allowing the javascript to be parsed on the
thank you page)?

--
Rodney

"Jim" <jstavast@xmission.com> wrote in message
news:d8r0f4$vf4$1@eval.shopsite.com...
It's not as simple as just adding the variables to the url. I don't know
javascript so can't be of much help. Here is a sample of some code one of
our engineers said might work.

img name=test src="none"><br
script type="text/javascript" language="JavaScript"
document.text.src="https://shareasale.com/sale.cfm?amount="
+ ss_subtotal + "&tracking=" +
ss_ordernum + "&transtype=TYPEOFTRANSACTION&merchantID=GOESHERE"
// --> </script

The line <image name=test src="none"> sets up an image that will be filled
in by the javascript in the next 5 lines. The variables ss_tota and
ss_ordernum are concatenated with the rest of the required url parameters
to make the complete url. The complete url is substituted for the "none"
in the <img name...> line.

Give that a try and see if it works. If not maybe someone else on the
list can suggest and alternative way.

Jim

Rodney Blackwell wrote:
Thanks Jim, I'm running shopsite pro version 7.x.

I was looking at the javascript variables documentation, but it didn't
seem to explain exactly how I should use them in practice.

Do they need to be wrapped in some sort of javascript to work, do they
need a tag around them?

Or would I just simple change the tracking code I had to:

img
src=https://shareasale.com/sale.cfm?amount=ss_subtotal&tracking=ss_ordernum&transtype=TYPEOFTRANSACTION&merchantID=GOESHERE
width="1" height="1"


And the above will work on the thank you page?
Rodney Blackwell
 

Re: shopsite and shareasale affiliate program

Postby jim » Thu Jun 16, 2005 5:50 am

ShopSite doesn't have anything to do with the actual parsing of the
javascript, that is done by the browser. Most browsers have the option
to turn off processing javascript. Check to make sure that you have
yours on.

Like I said I know little about javascript. I think the first line that
I included is necessary but I don't know for sure. How do you know that
it isn't being processed? I don't think that you will see anything on
your page for this since all parameters are being passed to shareasale.com.

Jim

Rodney Blackwell wrote:
Thanks again, Jim.

I wrote to shareasale and they sent me some similar javascript (except
theirs did not have the first <image name=test src="none"> line).

Was I supposed to edit the "none" part or just paste it as is?

I pasted it as is and I had the same problem with the js code from
shareasale. It doesn't seem like the javascript is getting parsed on the
Thank You page.

Is this a bug in shopsite (not allowing the javascript to be parsed on the
thank you page)?
jim
 

Re: shopsite and shareasale affiliate program

Postby Rodney Blackwell » Thu Jun 16, 2005 12:22 pm

"jim" <jstavast@xmission.com> wrote in message
news:d8rsja$ad7$1@eval.shopsite.com...
ShopSite doesn't have anything to do with the actual parsing of the
javascript, that is done by the browser.

I thought ShopSite might have a way of disabling javascript from working on
the thank you page (similar to how some apps disable HTML on some pages).


I must have totally messed something up somewhere along the line, as it
seems to be working fine now.

Thanks again for your help!

--
Rodney
Rodney Blackwell
 


Return to User Forum

Who is online

Users browsing this forum: No registered users and 35 guests