homepage Welcome to WebmasterWorld Guest from 184.72.184.104
register, login, search, subscribe, help, library, PubCon, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library : Charter : Moderators: whoisgregg

JavaScript and AJAX Forum

    
capturing sales info with external javascript
capturing sales info with external javascript
Mr_Diggz




msg:3632748
 11:16 pm on Apr 22, 2008 (gmt 0)

I'd like to capture sales information (items ordered, price of each item, total order sale, etc.) from our affiliated web sites. The webmasters would insert a little bit of JS on their order confirmation page which would be populated with the sales info.

For example, here's an example of how shopzilla does it.


<script language="javascript">
<!--
/* ROI Tracking Data */
var order_value = '$50.00';
var order_id = '12345';
var units_ordered = '3';
//-->
</script>
<script language="javascript" src="https://www.shopzilla.com/css/roi_tracker.js"></script>

Can anyone provide any info on a simple, secure method of processing the data sent via JS and adding it to our server? I'm just unclear on the JS part of it.

At the most basic level of thought, would you just take the JavaScript variables they set and make a GET request with the variables and then handle all the data sanitizing and security on the server?

[edited by: Mr_Diggz at 11:17 pm (utc) on April 22, 2008]

 

Mr_Diggz




msg:3634204
 2:56 pm on Apr 24, 2008 (gmt 0)

I'm not sure if I'm searching for the wrong thing or what, but I can't find any information on this subject anywhere.

Does anyone at least know what I'm talking about or am I using the wrong terminology when explaining/searching this?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
WebmasterWorld ® and PubCon ® are a Registered Trademarks of Pubcon Inc.
© Pubcon Inc. 1996-2012 all rights reserved