Can I categorize pages and filter by said categories with Google's CSE API? - google-custom-search

The title sums it up but here's a hypothetical example:
I have a cooking sites that has 10000 pages; 3000 recipe pages, 3000 ingredient pages, 3000 pages of the messageboard and 1000 one-off static pages. I wanted to add search to my site so I setup the CSE API and it has been working great. Now on the search results page I would like to add a way for users to be able to filter what ether are searching for which would be "all pages", "recipe pages", "ingredient pages", "messageboard pages", "other pages". Is setting up this filtering possible? Keep in mind it is a site I own so I can either upload lists of pages and can also edit the markup on the HTML pages themselves. Also keep in mind that all URLs are similar for each type, e.g. www.example.com/recipes/... begins all recipe pages, www.example.com/ingredient begins all ingredient pages, etc.

You can do it using refinement tabs: https://support.google.com/customsearch/answer/70359?hl=en
In your case, you need refinements like 'recipe' and 'messageboard'. Once you create those, in your sites to search section you can add these patterns and associate them with appropriate labels:
www.example.com/recipe -> recipe labe
www.example.com/messageboard -> messageboard recipe
etc.
In the results page, these will appear as tabs on top. You can style them using Look and Feel section of control panel.

Related

SEO - Submitting Search results page URLs of the website with parameters ... Good or duplicate content?

I have 100 dance classes offered by different people on the page x.com/dance-classes.
Each page only lists 20, so you navigate through 5 pages to see "ALL" the dance classes.
x.com/dance-classes
(with a Title, some content describing the results that are displayed on the page and then the results. Results are "ALL DANCE CLASSES" targeting keywords like "Dance classes")
user searches for dance classes for kids/adults from google
x.com/dance-classes?for=kids
(with a different title, results that are may/maynot have been on the /dance-classes page, results are for "ALL DANCE CLASSES FOR KIDS")
http://x.com/dance-classes?for=adults
(with a different title, results that are may/maynot have been on the /dance-classes page, results are for "ALL DANCE CLASSES FOR ADULTS")
Duplicate content?
I want google to index all three URLs as they specifically aim at different sets of keywords. So, rel=canonical is not an option.
This blog by Matt Cutts talks about something relevant to my case. Should i be worried?
https://www.mattcutts.com/blog/search-results-in-search-results/
Your x.com/x?=x is not friendly for SEO. It would be better to change your URLs to this type:
x.com/dance-classes/kids , x.com/dance-classes/adults
Or you can use jQuery and anchor text.
For example:
x.com/dance-classes#Adults , x.com/dance-classes#kids
In the first type, you can set a focus keyword for any page, but I don't know about jQuery and anchor text.

How to search category and fill site parameters automatically

I have seen some sites where you search (in Google) for a particular item category and when you click the link found in Google it automatically goes to the site clicked with the search criteria filled in displaying the categorised products.
Hypothetical Example
Go into Google type in Sony TV , click to search.
Results are displayed.
Clicking one of the links takes me to a website which shows all the Sony TV models beginning with AA.
Looking at the search options on the page some fields have been automatically filled in (in other words if you did this search manually the site would prompt you to enter some search criteria) - Not sure if this is relevant but thought to mention.
How is this done? Do i need to setup something in our Google account to get the same results?
It's fairly simple. You pass parameters in your URLs that identify the product, and then you just read the URL parameters when pre-populating the search form on the page. When building your site / sitemap / internal & external links you use those page URLs and Google will naturally pick them up.
In your example, you search for Sony TV. One of the results may be
example.com/index.php?product=sony-tv
The website has the variable sony-tv, which it gets from the URL and pre-populates on the search form.
The important part to note is that the site will have built its URL structure in this method typically and the page you're presented with just happens to look like the site dynamically searched based on your query (it hasn't).

How to avoid same content and keyword for multiple pages and focus on master page only

Hello Good morning all,
Hope all doing well, i am in a triangular situation for my multiple details pages, i want some idea how i can avoid google to not to crawl my details page and to crowl its container page which contains 90% same keyword, meta and url. For an example i have one page which is a master page of multiple categories here http://www.estatemarker.com/ahmedabad/industrial-properties.html it contains multiple categories when i open a category it let us to another page http://www.estatemarker.com/ahmedabad/industrial-warehouse.html which is subcategory now this subcategory has area vise listings of multiple pages this pages are same as this subcategory page but these contains listing of area only and this page has actual listing posted by brokers, now problem is i want to focus google on this page area vise page only but this page contains 50 more listing which opens a details page and details page contains 90% of same keyword and other SEO stuffs per the area vise page page. I need a guidance how i should avoid google to not to crawl this details page and area vise page instead.
Any help will be appreciated.
Thanks in advance
you can give canonical tag or can use
Robot.txt codes like
User-agent: *
Disallow: *?dir=*
Disallow: *&order=*
Disallow: *?price=*
to face such problems.
http://www.goinflow.com/duplicate-content-ecommerce-seo/

How do I make primary content in the right-rail SEO friendly?

My site design has three rails: navigation on the left, user generated discussions in the center (liquid), and a primary editorial block in the right rail (no advertising). So, an article would be published by me and appear at the top of the right rail, and user comments would appear in the center rail.
I want search engines to see the right rail content as the primary content, and so the meta description for each page would be related to the right rail.
Is it possible to do this in an SEO friendly way?
[Note: an SEO consulting firm have implied to my boss that web crawlers only "care about the center rail", and if the meta information disagrees with center rail content they will ignore the page]
Search engines cannot see the page the way human users do. Search engines see just the html code of the page, so they cannot distinguish between left, center or right rails. They do, however, have a sense of were the header, the body and the footer of a page is.
When it comes to the body of a page, search engines tend to give more relevance to text which closer to the the top. So if you can have a block of text at the top of your html source, move it visually with CSS somewhere lower on the page, and still (probably) remain more relevant than other blocks of text.
However, there is no way to specify to search engines what your "primary content" of a page is. Search engines determine the relevancy of a page in relation to keywords based on a lot of different on-page signals, so you should focus on those.
As for the meta description, your boss should choose the SEO consulting firms more carefully, as what they recommended is actually a nonsense. Meta descriptions are only used (eventually) by Google (for example) to generate the snippet for your pages in search results. They have no value when in comes to rankings.
Here's two SEO facts regarding meta descriptions that come directly from Google: Seo Fact NO.3, Seo Fact NO.4
Positioning of visible content on a page is handled using CSS.
There's a number of different approaches available from using float to position:absolute etc. For SEO purposes, there's no single-best approach, as long as you have your article content appear closest to the <body> tag, before the other "rails" or "columns".

Google Analytics API and Internal Search question

I'm trying to use Google Analytics API to query internal searches that happen on my site.
I'd like to be able to query the keywords and the number of times that keyword was used in internal search, based on URL of a page on the site. The idea is to find out which keywords direct the user to a particular page.
Does anyone know which dimensions and metrics must use to query that information?
The information you are talking about is in the "Site Search Terms" Report.
First, you need to set up Site Search. This is straightforward. A step-by-step explanation is on this GA Help Page.
Once you've done that, you just need to know how to access the Report.
From the first page after GA login, select a Profile from the "View Reports" menu in the upper left-hand corner of the page
On the left-hand side of the page (in the margin) click "Content" (the fourth item in the list of Dashboard pages) which will expand the items subsumed under the Content section
"Site Search" will now appear in the margin below "Content"
Click "Site Search"; the Report will have three tabs: (i) Site Search Usage; (ii) Goal Conversion; and (iii) Ecommerce. Obviously, most of the information you are interested in is in the first tab.
Once the search tracking is set up as per doug's answer, the dimension is ga:searchKeyword, and the metric you need is ga:searchUniques (and you probably want to sort by -ga:searchUniques). I've checked this against the GA web report & it matches up - the documentation in the GA API Query Explorer isn't really clear on what the ga:searchUniques really counts.