Tool for extracting search queries
-
Hello,
Does anyone know of or have a tool that takes referrer URLs coming from Google which extracts the search query from the URL string?
Thank you
-
Thanks but as I mentioned above I am in Germany so cannott use analytics at all, hence my need to find another way to do this
-
Actually, with Google Analytics you can create a filter to see the search queries that users typed to land o a specific page of your website. It's very simple:
When you have the tracked website selected, on the left column in GA you will see "Custom Reports". Click on it, then click on "Create New Report". From the blue Metrix box select "Site Usage", scroll down to "Visits" and drag and drop it in the first empty "Metrix" box on the right. Now click on the green "Dimensions" Box, click on "Content", select "Page" and drag and drop it in the empty Dimension box. Click on "Traffic Sources", scroll down to "Country/Teritory" and drag this in a sub-dimension to also be able to see it by region.
Hope this helps, good luck!
-
Hey thanks, yeh was just wondering if anyone had a ready made tool as would make things a bit easier. The plan is to use the referral URLs from logfiles to look at search queries that are sending traffic to specific areas of the website (directories/sub-directories etc).
In Germany so cannot use Analytics and webmaster tools does not allow you to filter search queries to different areas of websites
-
Coding this yourself (or having it done by your developer) is a pretty simple job. It requires not much more than reading the 'q' parameter from the URL, which in PHP for example can be done by reading the $_GET['q'] variable.
For what purpose do you plan to use this parameter?
-
Maybe you could describe what you need that data for? Google Analytics normally records that data for natural search visits, but if you are looking to dynamically insert the keywords that requires some code work.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Search pages showing up as soft 404 in WMT
Hi ....we are getting allot of "site search" pages showing up in wmt as soft 404's and wanted to know what the best would be to stop this. All search pages are already noindex follow but maybe we should block them in robots txt as well. Would the below help to solve this ? User-agent: *
Technical SEO | | nomad-202323
Disallow: /?s=
Disallow: /search/ Any other suggestions or direction would be appreciated to prevent these pages showing up as soft 404's tks0 -
Changes to 'links to your site' in WebMaster Tools?
We're writing more out of curiosity... Clicking on "Download latest links" within 'Links to your site' in Google's WebMaster Tools would usually bring back links discovered recently. However, the last few times (for numerous accounts) it has brought back a lot of legacy links - some from 2011 - and includes nothing recent. We would usually expect to see a dozen at least each month. ...Has anyone else noticed this? Or, do you have any advice? Thanks in advance, Ant!
Technical SEO | | AbsoluteDesign0 -
Looking for a tool that will display the contents of the htaccess file
I am looking for an online tool that will display the contents of the htaccess file. i came across a tool a month ago, but I can not recall the name of the tool. Thanks
Technical SEO | | irvingw0 -
Google place listings and search results- quick question.
Has anybody else noticed that they are ranking better on 'places' yet they have dropped off in the actual search results? We've had no message through webmaster tools. The same seems to have happened to our competitors.
Technical SEO | | onlinechester0 -
Pedantic H1 Query
Bonjour... If the target term is "Radiofrequency Ablation" does it make a jot of different against the standards of semantic markup the is written like this: Radiofrequency Ablation and not this Radiofrequency Ablation Any insights welcome 🙂
Technical SEO | | Nightwing0 -
Should search pages be disallowed in robots.txt?
The SEOmoz crawler picks up "search" pages on a site as having duplicate page titles, which of course they do. Does that mean I should put a "Disallow: /search" tag in my robots.txt? When I put the URL's into Google, they aren't coming up in any SERPS, so I would assume everything's ok. I try to abide by the SEOmoz crawl errors as much as possible, that's why I'm asking. Any thoughts would be helpful. Thanks!
Technical SEO | | MichaelWeisbaum0 -
Query String Redirection
In PHP, I'm wanting to store a session variable based upon a link that's clicked. I'm wanting to avoid query strings on pages that have content. My current workaround is to have a link with query strings to a php file that does nothing but snags the variables via $_GET, stores them into $_SESSION, and then redirects. For example, consider this script, that I have set up to force to a mobile version. Accessed via something like a href="forcemobile.php?url=(the current filename)" session_start(); //Location of vertstudios file on your localhost. Include trailing slash $loc = "http://localhost/web/vertstudios/"; //If GET variable not defined, this page is being accessed directly. //In that case, force to 404 page. Same case for if mobile session variable //not defined. if(!(isset($_GET["url"]) && isset($_SESSION["mobile"]))){ header("Location: http://www.vertstudios.com/404.php"); exit(); } //Snag the URL $url = $_GET["url"]; //Set the mobile session to true, and redirect to specified URL $_SESSION["mobile"] = true;header("Location: " . $loc . $url); ?> Will this circumvent the issue caused by using query strings?
Technical SEO | | JoeQuery0