How do I use the default Shopify search bar to search for a SKU#? (Dawn theme) - shopify

When I enter a SKU# into the default Shopify search bar, the predictive search does not show the item I typed in, however, when I click search and am taken to a new URL (search page), I do see the product with the SKU number I searched, but it is mixed up with random products.
I expect to only see the item I have searched for via the SKU#

Related

Custom search bar modification in Shopify

I was making a medicine store on Shopify and I have two issues:
want to make the search bar appear only when the user has signed up,
also I cannot show all products available, I only have to show the medicines the user has searched and knows the name of.

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).

Sitefinity: How to set page title based-on the content item being viewed?

I have a page in Sitefinity 7 and its entire purpose is to show the detailed view of a custom content item.
So I've dragged-on a widget to the page, selected that it only shows one particular item only, without selecting which, because it should be whatever one was chosen from another page which caused them to navigate here.
One not-selected content item.
The page with the list control navigates to the detailed page.
But the page title is the same no-matter which is selected. I want the page title to be one of the content item's fields. How can I get the page title to be based-on the item we're viewing?
Edit the Awards widget on your details page and then go to the Advanced settings, then in the MetaTitle field enter the field name of your module you'd like to use, so in most cases "Title", then in the PageTitleMode field, you can enter one of a few options, Append, Replace or DoNotSet. Documentation on those options is here. You can also utilize the MetaKeywordsField and MetaDecriptionField by also mapping those to a new "SEO Keywords" or "SEO Description" long text field on your module for instance. Documentation on that is here.
The screenshot is from Sitefinity 6.3 but it should be the same.

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

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.

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.