How Can I Find What Search Terms (if Any) Brought A User To My Site?
I want to create dynamic content based on this. I know it's somewhere, as web analytics engines can get this data to determine how people got to your site (referrer, search terms used, etc.), but I don't know how to get at it myself.
You can use the "referer" part of the request that the user sent to figure out what he searched for. Example from Google:
So you must search the string (in ASP(.NET) this can be found be looking in
Request.Referer) for "q=" and then URLDecode the contents.
Also, you should take a look at this article that talks more about referrers and also other methods to track your visitors:
- → Disallow query strings in robots.txt for only one url
- → Canonical updated with JS - is this used by SEO?
- → php seo 404 error in webmaster tool
- → HTML: How to get sub-links and search box display upon google search
- → Angular.js: Is there any disadvantage of hash in url with respect to SEO?
- → How to remove URLs with argument in google result
- → How to edit the search result in Google?
- → How to show page title on Google with Angular Precomposition?
- → Block 100s of url from search engine using robots.txt
- → Bing.com indexes URLs i've never submitted
- → How is structured data cross-checked with the page content by search engines?
- → Google search console fails to fetch sitemaps | "Sitemap could not be read"