Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: incrediBILL
We have a website which sell products.
To display the prices the user clicks a 'Buy Now' button and is referred to a third party server, this third party server holds all prices and also captures credit card details etc should the user want to proceed. All we do is pass a product reference number to the third paty server and that server then displays product costs shipping costs etc.
Is there a way to record when a user clicks the 'Buy Now' button.
We want a way to anaylse the number of users who look at prices on third party server and do or do not buy a product?
Site is in HTML on 2003 Server with IIS.
Thanks in advance.
This is all assuming you have no server side scripting language or DB (didn't see it mentioned so I assumed there wasn't). If you do, there are much more elegant ways to accomplish this.
You can do what we are talking about in one line with jQuery:
Thanks for the response.
I will have to do some research on a jQuery, never come across it.
In the time between my original post, I have tried different approaches including using the onclick event on the buy now button to html page so it logs a record in the weblogs that I can track, but it also opens the html page which is not good.
I will look into jQuery.
Does your server have .asp capabilities? I have a click-through tracking script I use to track clicks on one of my web sites. It logs the date, time, user IP, target and referrer then forwards them to the requested link. However, I am not sure if it will work with a form, but you can give it a try if you want.
Download the js file and put it on your server then include it in the head of the html on whatever pages you want to track.
Then create a small JS code section in the head like the following:
//load the code once its ready
//find the id property of the link (make sure its unique) and when it is clicked do whats in this function
//make an ajax call to the page you setup
I can send you example files, send me a sticky if you wish.