The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Tool for extracting search queries

    Tool for extracting search queries

    Technical SEO Issues
    6 4 693
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • soeren.hofmayer
      soeren.hofmayer last edited by

      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

      1 Reply Last reply Reply Quote 0
      • brycebertola
        brycebertola last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • Theo-NL
          Theo-NL last edited by

          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?

          soeren.hofmayer 1 Reply Last reply Reply Quote 0
          • soeren.hofmayer
            soeren.hofmayer @Theo-NL last edited by

            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

            zoicaremus soeren.hofmayer 2 Replies Last reply Reply Quote 0
            • zoicaremus
              zoicaremus @soeren.hofmayer last edited by

              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!

              1 Reply Last reply Reply Quote 0
              • soeren.hofmayer
                soeren.hofmayer @soeren.hofmayer last edited by

                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

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Sitelink search in google search for Brand name redirect me to 404, how?
                  amu123
                  amu123
                  0
                  4
                  73

                • How to use Google search console's 'Name change' tool?
                  cmscss
                  cmscss
                  0
                  4
                  67

                • Google Webmaster Tool - Crawl Stats Query ?
                  AlanMosley
                  AlanMosley
                  0
                  3
                  2.0k

                • Search/Search Results Page & Duplicate Content
                  AJPro
                  AJPro
                  0
                  2
                  272

                • Site wide search v catalogue search
                  de4e
                  de4e
                  0
                  2
                  384

                • Tool?
                  Lindsay
                  Lindsay
                  0
                  3
                  610

                • SERP Meta Dependant Upon Search Query (strange Google bug?)
                  DanHill
                  DanHill
                  0
                  4
                  781

                • Why do I see dramatic differences in impressions between Google Webmaster Tools and Google Insights for Search?
                  FranktheTank-47497
                  FranktheTank-47497
                  0
                  4
                  1.1k

                Get started with Moz Pro!

                Unlock the power of advanced SEO tools and data-driven insights.

                Start my free trial
                Products
                • Moz Pro
                • Moz Local
                • Moz API
                • Moz Data
                • STAT
                • Product Updates
                Moz Solutions
                • SMB Solutions
                • Agency Solutions
                • Enterprise Solutions
                • Digital Marketers
                Free SEO Tools
                • Domain Authority Checker
                • Link Explorer
                • Keyword Explorer
                • Competitive Research
                • Brand Authority Checker
                • Local Citation Checker
                • MozBar Extension
                • MozCast
                Resources
                • Blog
                • SEO Learning Center
                • Help Hub
                • Beginner's Guide to SEO
                • How-to Guides
                • Moz Academy
                • API Docs
                About Moz
                • About
                • Team
                • Careers
                • Contact
                Why Moz
                • Case Studies
                • Testimonials
                Get Involved
                • Become an Affiliate
                • MozCon
                • Webinars
                • Practical Marketer Series
                • MozPod
                Connect with us

                Contact the Help team

                Join our newsletter
                Moz logo
                © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                • Accessibility
                • Terms of Use
                • Privacy