Help - Shopsite Variable for Tracking

General ShopSite user discussion

Help - Shopsite Variable for Tracking

Postby farthestpoint » Wed Aug 03, 2011 6:12 am

This is the code that we need to place at the confirmation page (which i suppose is the thank you page?) for the purpose of passing the sub-total amount to the affiliate site.

<!-- Offer Conversion: - Webshop -->
<iframe src="http://affiliatesite.com/SPx?amount=AMOUNT" scrolling="no" frameborder="0" width="1" height="1"></iframe>
<!-- // End Offer Conversion -->

What do we use for the variable AMOUNT? Shall we replace it with ss_subtotal ? or 'ss_subtotal' ? or something else?

Thanks for the help!
farthestpoint
 
Posts: 2
Joined: Wed Aug 03, 2011 6:06 am

Re: Help - Shopsite Variable for Tracking

Postby ShopSite Lauren » Thu Aug 04, 2011 7:57 am

The variable that you referenced is a JavaScript variable, so you will need to write the iframe with JavaScript, then add the variable in.
- ShopSite Lauren
Contact me for help with any of your
custom ShopSite template questions.
ShopSite Lauren
 
Posts: 889
Joined: Fri Aug 11, 2006 1:35 pm
Location: Orem, UT

Re: Help - Shopsite Variable for Tracking

Postby farthestpoint » Sun Aug 07, 2011 2:42 am

Hi Lauren,

Thanks for the response. Please see below code.

<!-- Offer Conversion: Webshop -->
<iframe src="http://track.sampleaffiliatesite.com/SLz?adv_sub=SUB_ID&amount=AMOUNT" scrolling="no" frameborder="0" width="1" height="1"></iframe>
<!-- // End Offer Conversion -->

The above code had been given to us to be pasted to the confirmation page.

However, i think we have to change SUB_ID & AMOUNT to pass on the actual values, however, which variable in shopsite could we use for these?

SUB_ID we want to replace with the Order Number from Shopsite and AMOUNT with Sub-Total.
Thanks in advance.
farthestpoint
 
Posts: 2
Joined: Wed Aug 03, 2011 6:06 am

Re: Help - Shopsite Variable for Tracking

Postby robm » Sun Aug 07, 2011 6:11 am

You would need to use a document.write command in JavaScript:

Code: Select all
<script type="text/javascript">
document.write("<iframe src=\"http://track.sampleaffiliatesite.com/SLz?adv_sub="+ss_ordernum+"&amount="+ss_subtotal+" scrolling=\"no\" frameborder=\"0\" width=\"1\" height=\"1\"></iframe>");
</script>


That should pass the variables you need to your tracking service.

Rob
robm
 
Posts: 463
Joined: Fri Aug 04, 2006 5:46 pm
Location: Connecticut


Return to User Forum

Who is online

Users browsing this forum: No registered users and 78 guests