dchun / QuoteManager

Saas App for Managing Quotes and getting paid
https://quotemanager.boopis.com
0 stars 0 forks source link

Add Request Analytics #172

Closed dchun closed 9 years ago

dchun commented 9 years ago

Since we are adding forms via js, it may require additional work to get referer (ip etc) data since we are not retrieving it serverside.

@phuong3030 Any ideas on how we should collect some basic analytics for incoming requests and form submissions?

dchun commented 9 years ago

@phuong3030 I just realized that we can actually get the referer data from our servers when the POST request is made -_-

dchun commented 9 years ago

We can add something to the inline js file that detects if google analytics is setup, if it is, collect all relevant information like the following example: http://stackoverflow.com/questions/5631830/get-the-referrer-paid-natural-and-keywords-for-the-current-visitor-with-google

phuong3030 commented 9 years ago

The referer data can be get by using ahoy library. In quote public link, we have collect the ip and the view duration. Compare with google analytic, ahoy uses for create our data.

Ahoy:

Google analytics

dchun commented 9 years ago

i meant analytics coming in from the client side of for requests not quotes. So when a form is submitted, we should collect data like ip and referer

phuong3030 commented 9 years ago

I will add the script to form-inline.js and inline script tag to form raw html. So we can collect the data we want.

phuong3030 commented 9 years ago

https://github.com/boopis/QuoteManager/pull/191

untitled