Geo Location on Website - geolocation

I want to retrieve information like "city" level information of a visitor from their IP address, so that I can personalize my website according to their location. Just to let you know all, I have zero knowledge of coding (PHP, JSON, HTML, Jquery, Javascript, Ajax) etc. What I need from you experts is, whenever a visitor come to my site, it would show up their city name. For example: if you reside in "Calgary", and you visit to my website, it would show up as "Are you looking for digital marketing company in Calgary? I would be very grateful if you experts can help me? Attached is the file of an example. personalized landing page
Note: I have a wordpress website.
Thank you so much in advance.

Related

Referral Traffic

I run a website that contains links to other partner sites. According to my partners, no traffic comes through the links on my site. As a result, I created an artificial affiliate website myself and actually it was not possible to capture the links that go to the artificial website on my website. I already searched the source code and could not find any meta information like "no-referrer". Does anyone have any idea what else it could be?
Thanks in advance for your ideas!

Listing elements by geolocation

I am trying to create a listing website, though i am a newby in programming i started self-learning.
My question:
I want to list elements(restaurants) on the homepage by the nearest from user who entered my website,
Could you please advise something or maybe a ready script or code
Thank you very much in advance

How can I get exact URL from the website?

I'm not really sure how to frame the question (maybe the reason why I could not find the answer, so please let me know if it's duplicated question) but I'm not able to get the exact address for a website that I want to scrape. The website address is "https://www.nysar.com/find-a-realtor/". And I want to only scrape information in Albany, NY. And when I search by the address with Albany, NY, I get new search results but the URL is still the same....
Is there any way that I can find out the detailed URL address?
Thank you in advance!
That page is dynamically loaded using javascript, so in order to see the source of your search result, you have to go into the Developer tools of your browser and look for it under Network/XHR. There's a lot of information about this, including here. It's not a simple concept so you should study up on it before attempting to scrape this type of sites.
In any event, in this particular case, the data is extracted from here.

Rails URL's doesn't appear in Google search results

First of all excuse my english I know that it isn't the best. The thing: I got a Rails application, I already generate the sitemap and inside of it there are the doctor's urls, because my app serves as a medical directory, so let's say that I want to Google: "Michael Green" and indeed there is a doctor with that name inside the app, and I generated the sitemap with it's URL, and all the meta tags as keywords, title and description with that name. When I go to Google it's impossible to find that doctor, even if I use Google custom searches and another tools. It's an API, but I serve HTML in order to Google see the important data first and to make the application crawlable.
I know that I'm not a SEO magician but, I think that I put al the neccesary data to make that "doctor" visible for Google, also my static pages as: Contact, information or the main page, these appear on Google results, but the doctors doesn't, the URL for doctors is something like: app.com/doctors/michael-green, and still nothing. So once again excuse my english and I'll appreciate any help. Thank you.

Detect where website is opened from

Sorry, this may come across as a bit vague but how would go about and displaying a different logo of an organisation based on where the site is opened from. For example, the organisation would want their official South African logo to be displayed when the site is opened in South Africa, and another official logo when it is opened in Kenya or Ghana for example.
Would the site simply have to be hosted in more than one server...can't think of any other possible way?
To find country first you find Ipaddress
string Ipaddress= HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"];
Using Ip address you can find location as follows
using (var wc = new WebClient())
{
string output = wc.DownloadString(String.Format("http://api.hostip.info/?ip={0}&position=true", ipaddress));
}
Output is in XML format and it will contain a countryName tag
I would have this as a comment .Since, I don't have enough reputations, I am posting as an answer.
This link would be useful to detect the country and change the logo based on the country in your logic.
Detect/estimate country of a http-request in ASP.NET
Adding the contents of the link, since the link may expire.
You can use one of available web services to match an incoming request to a country.
Otherwise you may decide to grab the MaxMind database file (GeoLite Country), read from this file in your application and perform a match. Thus you will be independent from a third-party service, only pulling regularly updates for the database file.
Also check out similar questions:
Geolocation web service recommendations
Know a good IP address Geolocation Service?
In a very short, in market so many vendors are there, who are tracking geolocation, One of them is google API.
https://www.googleapis.com/geolocation/v1/geolocate?key=YOUR_API_KEY
You can generate your own API_KEY.
Hope this post will helps you. :)

Resources