I googled a lot but could not find a solution yet.
Here is how my in-site search url looks like: https://www.magidostur.com/search-tours/?tour-search=mysearchterm&tax-tour-destinations=&month=
tour-search is my query parameter, and mysearchterm is my search term, obviously.
Here as you can see when i try to add my search term on advanced settings, analytics does not accept my parameter and it says "please only separate parameters with comma."
What should i do?
Thank you.
check screenshot
You can send the 'view_search_resutls' event manually, if you are using GTM.
Just disable enhanced measurement for site search and implement the event via GTM.
Related
As the Google Search Console is now fully integrated into GA...
(...see http://searchengineland.com/google-search-console-metrics-now-deeply-integrated-google-analytics-249334 ...)
...we would like to get access to e.g. the search terms via API (e.g. to access the data via spreadsheets). Therefore we want to know if this is possible at all - and if yes, which dimensions & metrics can be accessed.
The corresponding API page doesn´t help atm:
https://developers.google.com/analytics/devguides/reporting/core/dimsmets#cats=page_tracking,content_grouping,channel_grouping
Cheers!
There are two ways.
The first solution you posted yourself. The developers.google.com link is showing you exactly, what dimensions and metrics can be combined.
Try it yourself with the query explorer: https://ga-dev-tools.appspot.com/query-explorer/
Just add the metrics/dimensions you could probably need and try out what works.
If you need Search Console Data you should use the Search Console API ;)
There you go: https://developers.google.com/apis-explorer/#p/webmasters/v3/
The GA interface can show you the data, but GA is not the source of the data. And they also don't have a copy of it. You will need to use the right api.
I am trying to track query strings in Google Analytics, but I have a problem. I have too many variables to fit in the "normal set" provided by Google. They allow you to set utm_source, utm_medium, utm_term, utm_content and utm_campaign. I need another one, let's call it my_qs.
So my URL would look like:
http://example.com?utm_source=stack-exchange&utm_medium=web&utm_term=google-analytics&utm_content=nonstandard-query-strings&utm_campaign=answers&my_qs=gotmike
I can obviously find reports for all the standard query strings in Google Analytics, but I'm having a tough time figuring out how to run reports on these other variables that show up in the URLs.
I looked into Custom Variables, and they seem like something that is set by the Google Analytics code, not by the query string in the URL.
Maybe the answer is to write some javascript to grab my query string and store it as a Custom Variable in Google Analytics?
I read several articles about creating Custom Variables based on data stored on your website, but I'd really like to provide a simple URL link back to my website and get the data from the query string based on a user clicking that link.
Any ideas on how to accomplish this?
If you are using GTM, then you can grab the query parameter quite easily by creating your own variable to grab your qp. The variable would look something like this:
You could then provide "my_qs parameter" as a value for your Custom Dimension in your tags. Make sure you have already defined and configured this in your GA account first.
We have site search set up on our site, with the correct query parameter, however, we are not seeing site search data. See the image here for how our config is set up.
The URL for our search page looks like this https://www.premierinc.com/?s=Example.
We know there has been search traffic. Internal users (myself included) have performed a number of searches. The tag has been live for over a week, so processing delay shouldn't be an issue.
I've also triple checked that I'm on the correct view in GA.
Any ideas?
So it turns out that GA favors the document path (dp) parameter over the document location (dl) parameter. So although the search term was in the payload sent to GA, it was promptly ignored when it got there :)
Moral, if you use dp, you probably need to use dq as well.
(Thanks to Kim Towne on the GA forums for helping me figure this one out).
We want to capture aggregated, anonymous search query history for analytic purposes to improve our internal search engine performance and metadata practices.
I found this article: https://support.google.com/analytics/answer/1012264?hl=en
Unfortunately, our search engine uses a hash tag instead of a question mark (nonstandard query string).
For example: http://www.site.com/search#q=search%20term
Is there a way to configure Google Analytics to recognize hash tag values in the URLs and capture these given a defined pattern?
Thanks
sorry to say this, but hash tags won't "make it" into the reports at all, so no search reports for hash tag.
There is a simple workaround though: use virtual pageviews, that would emulate the request with regular query parameter with ? sign.
_gaq.push(['_trackPageview', '/search?q=search%20term']);
However, this virtual pageview will generate a second pageview for a given page, which isn't preferable. So I would recommend setting up a new view specifically just for site search reports (or try to play around with advanced filters, which might get the work done). Also, don't forget to turn on the site search within the view settings as you would do otherwise:
Have you tested putting in a hash into the Query Parameter field?
In my app, there's a requirement to track search queries, which individuals to the app. The point here is to track specifically individuals/search_queries, i.e. I want to be able to say:
User 10.20.30.40 (IP is derived from client, ok) came to my website
from Google's search results page of 'hello world' query
Is that even possible?
I investigated the problem a bit. It turned out, that when the user on Google Search result page clicks a link and gets to the underlying page, the referer doesn't contain the search query. Say, for example, I entered a "Hello world" query...
I open google and enter a "Hello world" query;
I see a serach result page with a link to wikipedia on top; I follow it
I enter "document.referrer" in consonle to see:
http://www.google.com.ua/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CGkQFjAA&url=http%3A%2F%2Fru.wikipedia.org%2Fwiki%2FHello%2C_world!&ei=HZ0fUIXTIordtAau54GwAQ&usg=AFQjCNHSAHv8NwVNdaxMvh0OhIxs6Zb1rQ&sig2=a8tEGTBNcFWOPykloXj_Xg
There's a &q= param with a blank value, preventing me to figure out the query the user entered.
I believe Google internally uses some of the query params (i.e. ved, ei, usg or sig2) from the URL above to keep track of query used to get to the site, and thus gatehr the statistics about which queries are used mostly to the get to the website. I couldn't find any information regarding how to use them.
In the meantime, Google Analytics would only gather a general statistics, not for individuals. Yet I noticed that there's an ability to use Custom Variables. Is it possible to use them somehow in order to track query the user came with? If so, wouldn't it be a violation of Google Analytics Terms Of Service?
So again: is there a way to know a search query one came to the site with?
This is not possible. Google erases the value of q parameter, so instead of
`?q=search+query`
one always observs.
`?q=`
Though, Google provides another way (the so called convinient one) to know which queries were used to come to your website: Google Analytics.
Also, it's impossible to track user_ip/search_query pair due to Google Analytics ToS.