Click here to Skip to main content
12,403,130 members (70,491 online)
Rate this:
 
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 7:05am
Updated 17-Mar-13 7:34am
v3
Comments
Chris Maunder 17-Mar-13 13:10pm
   
What technology?
Sanjeev236 17-Mar-13 13:13pm
   
ANY.BUT C'NT CHANGE PAGE'S EXTENSION FROM .HTM.
Sanjeev236 17-Mar-13 13:13pm
   
ANY, C# PREFERABLE.BUT I C'NT CHANGE PAGE'S EXTENSION FROM (.HTM) HTML?
aspnet_regiis -i 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 17-Mar-13 13:35pm
   
I WANT TO KEEP TRACK FOR ME..DNT WANT TO SHOW LOCATION TO VISITOR.
Prasad Khandekar 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160721.1 | Last Updated 17 Mar 2013
Copyright © CodeProject, 1999-2016
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