Hi guys, I am just getting started with Umbraco. My question is if there is a way to capture user/visitor IP address and other relevant information on click? If yes, is there any resource i can look at? I would like to store and analyze them.
If you want to capture user/visitor IP address and other relevant information on click I think that you should have a look at Google Analytics with this you can set up some tracking when the user visted your site, and one of the things is event tracking. Try to see more about event tracking here: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
Capturing visitor ip address on click
Hi guys, I am just getting started with Umbraco. My question is if there is a way to capture user/visitor IP address and other relevant information on click? If yes, is there any resource i can look at? I would like to store and analyze them.
Thanks in advance!
Hi Thomas,
If you are using c# at backend than you can get IP Address on button click using server variable.
Or else by using jQuery you can also get IP Address.
Regards,
Urvish Mandaliya
you can also use
HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
Hi Thomas and welcome to our :),
If you want to capture user/visitor IP address and other relevant information on click I think that you should have a look at Google Analytics with this you can set up some tracking when the user visted your site, and one of the things is event tracking. Try to see more about event tracking here: https://developers.google.com/analytics/devguides/collection/gajs/eventTrackerGuide
If you want to be able to see Google Analytics data from the Umbraco backoffice then you should have a look at the Google analytics package https://our.umbraco.org/projects/backoffice-extensions/analytics from Warren Buckley
Hope this helps,
/Dennis
Hi @Urvish and @Dennis,
Thanks for the prompt reply. I will be sure to check them out. Umbraco feels so foregin right now, honestly. Haha.
Happy Coding anyway!
Cheers
is working on a reply...