Click here to Skip to main content
11,492,907 members (62,221 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: HTML
Is there any way to get a visitor's country from a HTML page?

I AM A ADMIN OF A WEBSITE OF 440 PAGES WHERE I USED TO SELL MY PRODUCTS.FOR MARKETING,USED TO RUN ADS ON BING ADS AND GOOGLE ADWORDS,WHERE I AM GETTING FAKE CLICKS FROM OTHER COMPETITORS.
IN ORDER TO CONFIRM THE SAME,I WANT TO KEEP TRACK OF VISITOR ON MY WEBSITE.

ALL PAGES ARE IN HTML.SO I DON'T WANT TO SHOW VISITORS LOCATION TO VISITOR,BUT I AM DOING IT ONLY TO KEEP TRACK OF VISTORS ON MY WEB?

THANKS IN ADVANCE.
Posted 17-Mar-13 8:05am
Edited 17-Mar-13 8:34am
v3
Comments
Chris Maunder at 17-Mar-13 13:10pm
   
What technology?
Sanjeev236 at 17-Mar-13 13:13pm
   
ANY.BUT C'NT CHANGE PAGE'S EXTENSION FROM .HTM.
Sanjeev236 at 17-Mar-13 13:13pm
   
ANY, C# PREFERABLE.BUT I C'NT CHANGE PAGE'S EXTENSION FROM (.HTM) HTML?
aspnet_regiis -i at 17-Mar-13 13:24pm
   
rename it ...

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Hello Sanjeev,

How about using new HTML5 GeoLocation API. Please have a look at demo here[^]. There is another example located here[^] on W3Schools.

Regards,
  Permalink  
v2
Comments
Sanjeev236 at 17-Mar-13 13:35pm
   
I WANT TO KEEP TRACK FOR ME..DNT WANT TO SHOW LOCATION TO VISITOR.
Prasad Khandekar at 17-Mar-13 13:46pm
   
Well you can use this API on client browser to retrieve the co-ordinates and post those back via AJAX.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 419
1 Maciej Los 286
2 F-ES Sitecore 224
3 KarstenK 210
4 CPallini 208
0 Sergey Alexandrovich Kryukov 10,132
1 OriginalGriff 8,630
2 Sascha Lefèvre 3,624
3 Maciej Los 3,392
4 Richard Deeming 2,500


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 17 Mar 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100