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
-
SEO dealing with a CDN on a site.
This one is stumping me and I need some help. I have a client who's site is www.site.com and we have set them up a CDN through Max CDN at cdn.site.com which is basically a cname to the www.site.com site. The images in the GWT for www.site.com are de-indexing rapidly and the images on cdn.site.com are not indexing. In the Max CDN account I have the images from cdn.site.com sending a canonical header from www.site.com but that does not seem to help, they are all still de-indexing.
Reporting & Analytics | | LesleyPaone0 -
Tracking Social Interactions with GA and WordPress
Hi, One of the things I'm looking to do is to track clicks on my social follow buttons. I know I can try to add GA events for each button and go from there. But in order to simplify the process, I'm looking for a WP plugin that can help. Currently I've only come across AddThis and Share This as viable options, though Add This has very mixed reviews, and Share This isn't updated for WP 3.6.1. For my social shares at the end of blog posts I'm wondering the same thing about tracking shares. I've used AddThis in the past with success in tracking shares, but I wanted to see what other are doing or if there's a newer technique. The bottom line is that I want to try to see as much of the "social" as I can in GA. Thank you in advance!!
Reporting & Analytics | | Titan5520 -
Any harm and why the differences - multiple versions of same site in WMT
In Google Webmaster Tools we have set up: ourdomain.co.nz
Reporting & Analytics | | zingseo
ourdomain.co.uk
ourdomain.com
ourdomain.com.au
www.ourdomain.co.nz
www.ourdomain.co.uk
www.ourdomain.com
www.ourdomain.com.au
https://www.ourdomain.co.nz
https://www.ourdomain.co.uk
https://www.ourdomain.com
https://www.ourdomain.com.au As you can imagine, this gets confusing and hard to manage. We are wondering whether having all these domains set up in WMT could be doing any damage? Here http://support.google.com/webmasters/bin/answer.py?hl=en&answer=44231 it says: "If you see a message that your site is not indexed, it may be because it is indexed under a different domain. For example, if you receive a message that http://example.com is not indexed, make sure that you've also added http://www.example.com to your account (or vice versa), and check the data for that site." The above quote suggests that there is no harm in having several versions of a site set up in WMT, however the article then goes on to say: "Once you tell us your preferred domain name, we use that information for all future crawls of your site and indexing refreshes. For instance, if you specify your preferred domain as http://www.example.com and we find a link to your site that is formatted as http://example.com, we follow that link as http://www.example.com instead." This suggests that having multiple versions of the site loaded in WMT may cause Google to continue crawling multiple versions instead of only crawling the desired versions (https://www.ourdomain.com + .co.nz, .co.uk, .com.au). However, even if Google does crawl any URLs on the non https versions of the site (ie ourdomain.com or www.ourdomain.com), these 301 to https://www.ourdomain.com anyway... so shouldn't that mean that google effectively can not crawl any non https://www versions (if it tries to they redirect)? If that was the case, you'd expect that the ourdomain.com and www.ourdomain.com versions would show no pages indexed in WMT, however the oposite is true. The ourdomain.com and www.ourdomain.com versions have plenty of pages indexed but the https versions have no data under Index Status section of WMT, but rather have this message instead: Data for https://www.ourdomain.com/ is not available. Please try a site with http:// protocol: http://www.ourdomain.com/. This is a problem as it means that we can't delete these profiles from our WMT account. Any thoughts on the above would be welcome. As an aside, it seems like WMT is picking up on the 301 redirects from all ourdomain.com or www.ourdomain.com domains at least with links - No ourdomain.com or www.ourdomain.com URLs are registering any links in WMT, suggesting that Google is seeing all links pointing to URLs on these domains as 301ing to https://www.ourdomain.com ... which is good, but again means we now can't delete https://www.ourdomain.com either, so we are stuck with 12 profiles in WMT... what a pain.... Thanks for taking the time to read the above, quite complicated, sorry!! Would love any thoughts...0 -
GA Regex Help Needed!
Hi mozzers, I am just discovering the RegEx world so I need your help. I would like to create an advanced segment to track 40 specific pages that have very different URIs from each other. Can you tell me how using RegEx? The dimension would be "landing pages" then not sure... Thanks
Reporting & Analytics | | Ideas-Money-Art0 -
Mobile Site on Google Analytics
Hi mozzers, We just launched a mobile site and I was wondering what are the main steps to follow for gettting your mobile site tracked via GA (m.example.com)? We have a profile for www.example.com GATC: javascript or PHP to install? Should the profile be on a subdomain? What else to consider when implementing a mobile site on GA? Thanks
Reporting & Analytics | | Ideas-Money-Art0 -
A switch from Search to Direct traffic from Feb 2012
I have read about the Google algorithm updates galore in 2012. I would therefore be inclined to suspect a sudden sharp drop in Search traffic this year to be caused by such updates. However, I am seeing what appears to be a direct switch from 'Search' to 'Direct' traffic as of about February 16th this year. There are no specific brand-building exercises or general advertising campaigns happening around this time for the site in question. It seems very UN-explainable? I wondered if there are any thoughts from the various lurking gurus? I have attached GA screenshot.. DjTu1.png
Reporting & Analytics | | MikiP0 -
Setting up GA to report on sub domains
I've just launched a mobile version of my site at m.mydomain.com. I could do with a bit of help just checking I've inserted my Google Analytics code correctly though. I've chosen the sub domain option from settings and pasted the code into both the mobile and the non-mobile version of my sites. However, am I right in thinking that the setDomain attribute should point to two different domains for example: _gaq.push(['_setDomainName', 'm.mydomain.com']); (for the mobile site) and: _gaq.push(['_setDomainName', 'mydomain.com']); (for the standard site) Thanks very much for your help!
Reporting & Analytics | | theshortstack0 -
Can I implement Facebook insights to GA?
Hi, I would like to know if anyone knows of a function where I can implement my facebooks insights of my fanpage to my google Analytics account. I want to be able to manage all my tracking through one software (GA) so that it is easier for me to see the correlations. Thanks a bunch,
Reporting & Analytics | | wellbo
-Malte0