homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

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

 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 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]



 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved