GA Internal Site Search Correct Query Parameter?
-
Hi Guys,
Recently added GA internal site search to a sub-folder: http://tinyurl.com/jhm9cyl
Just want to confirm would the query parameter be:
/search/
Or different because it's a sub-folder?
Cheers.
-
Hi Jay,
If I check the page you gave as an example using the Tag Assistant it states "No tags found"
Dirk
-
Hi Dirks,
Thanks for that. The site/page is tagged with GA.
-
True. GA works if your links are http://www.example.com/?q=term or http://www.example.com/?s=search. Of course you can change q or s, but way as they work you can't. But you can "hack" this:
https://support.google.com/analytics/answer/1012264All you need is to include on search page (and only on search pages) this code if you using analytics.js:
ga('send', 'pageview', '/search_results.php?q=keyword');
and that's all. -
Hi,
In the example you mentioned the query parameter would be q - as your syntax is domain.com/search?q=keyword - check here for more info: https://support.google.com/analytics/answer/1012264?hl=en#Params
(I imagine you gave the link as example as the site isn't tagged for Google Analytics)
Dirk
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
-
Lots of missing main keywords from Search Console
Hello Moz Community, A while back I noticed in Google Search Console that the volume of impressions and clicks dropped off a cliff. I also noticed that this was for primary head keywords that generally had a decent volume of impression share. The natural initial reaction was 'oh, I must have lost those rankings' but upon checking I realized these rankings are still in existence. Admittedly most are page 2 or 3, but still within the confines of being captured in GSC. Is there a logical reason why these keywords have just gone from search console? An example keyword would be something like 'online football management game' and the website is https://www.worldelitesoccer.com There is 0 queries in my search console data that includes the word 'football'. Thanks, Ben
Reporting & Analytics | | melaniedsg0 -
What determines the page order of site:domain?
Whenever I use site:domain.com to check what's index, it's pretty much always in the same order. I gather from this, the order is not random. I'm also reasonably certainly it isn't related to any page strength signals or ranking results. So, does anyone know why the pages are displayed in the order they are? What information does the order of the pages tell me? Thanks, Ruben
Reporting & Analytics | | KempRugeLawGroup1 -
Ok. I'm just going to cut loose with my stupid question. What is internal link equity? What distinguishes an internal link with equity from one without equity?
What distinguishes an internal link with equity from one without equity? Is there a limit to how many of these I want? What's the rule-of-thumb? Cheers, Wes
Reporting & Analytics | | wrconard0 -
What extra shall we do to increase organic traffic for both the sites?
One of my clients has english language websites targeted for USA and UK audience with some content variations but60%-70% of the content on site remains the same. The site is hosted in USA. One is hosted on brandname.co.uk and one is on brandname.com. The precuations that we have already taken to save it from being marked duplicates are: 1. used rel=alternate element for all product detail pages2. currency in both the sites are different that is GBP and USD3. have tried to differenttate the product by using different product specific terms like Publishing Year: vis a vis published in:Author Vis a vis Written byFormat vis a vis binding type Add to cart vis a vis add to basket and so on What remains the same: 1. Title structure 2. Description 3. Product Name 4. About the product text
Reporting & Analytics | | CyrilWilson0 -
Setting up Webmaster Tools correctly - naked domain DNS error and sub-domains question
I'm trying to get our domain (verdantly.com) set up correctly in Google Webmaster Tools. Currently, I have three "sites" setup: blog.verdantly.com (wordpress.com blog redirected to this subdomain) www.verdantly.com verdantly.com The subdomain blog and www show up without errors. However, the naked domain shows a DNS error. I've checked the DNS settings at the registrar and don't see any issues. So here are my questions: 1. Am I correct in setting up the naked domain AND the subdomains separately in Webmaster tools? 2. How do I track down / resolve the source of the DNS errors at the naked domain? Thanks!
Reporting & Analytics | | letsdothis0 -
GA Regular Expression
Can anyone tell me how to do a regular expression in the new version of GA? I want to remove specific keywords from organic reports. In the previous version of GA I used the following (phrase1|phrase2|phrase3) but that doesn't work anymore.
Reporting & Analytics | | SoulSurfer80 -
Want to link to GA profile, but the one I want is not showing in drop-down
How can I manually add the correct Google Analytics data in to my account? The two options I see on the drop-down are not the ones I want to select and I don't see a way to do it manually. Help!
Reporting & Analytics | | Uniqueson0 -
Google Analytics - April Search Report Data Gone For All Clients - Anyone Else Seeing This?
Hey everyone, In the last hour I was doing some SEO referral reportingin Google Analytics and discovered that my April data was completely gone (flat lined to zero). Specifically, if i select a date range for any point in april and select search from the advanced segments area I am seeing this issue. This is happening for ALL of my active clients... anyone else seeing this?
Reporting & Analytics | | dpeddle0