Skip to main content
U.S. flag

An official website of the United States government

Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock ( ) or https:// means you’ve safely connected to the .gov website. Share sensitive information only on official, secure websites.

Going Live With Search.gov

Your pre-launch checklist will be unique to your agency’s workflow, requirements, and deadlines. Below is a typical checklist.

Double Check Your Content Settings

1. Have you told us which domain(s) you want to search? List one or more domains that you want to search on the first page of web results. Some agencies opt to leave out the ‘www’ to include all subdomains (for example, list usa.gov to include answers.usa.gov, blog.usa.gov, publications.usa.gov, etc). Some agencies especially department-level portals opt to also include their bureaus’ websites (for example, Commerce.gov includes commerce.gov, noaa.gov, trade.gov, etc.)

2. Have we indexed your your content? We follow search engine optimization (SEO) best practices and leverage your XML sitemaps to monitor for new content. Verify also that you have a robots.txt file. These two files are typically located in the root directory of your website (i.e., example.gov/robots.txt and example.gov/sitemap.xml, respectively). Also verify that your robots.txt file allows our user agent (usasearch) to access your public content.

3. Have you told us about your RSS feeds? We love RSS feeds. Tell us about all of your feeds, even if you opt not to show them (see #5 below). They’re a quick way for us to index your new and updated content, in addition to the content listed on your sitemap (see above). (Tip: Preview your feeds from the RSS page in the Admin Center to confirm that we’ve indexed your content.)

4. Have you told us about your social media accounts? Flickr photostreams and YouTube videos are a great way to highlight your recent content and offer a single point of access to your various publishing channels.

Customize the Display of Your Search Results Page

5. Have you made the search results page look like your website? Customize the brand (font, colors, logo, favicon, and navigation links) of your search results page to create a seamless experience for users as they search and browse your website.

6. Have you told us what to show on your results page? Turn on (or off) the inline modules and search tabs that you want to appear on your search results page. You can change the default settings on the Display Overview page in the Admin Center.

Note: We are releasing a true faceted search feature in 2023, currently available through our results API. To prepare for updates to the Admin Center that will allow you to manage that faceted search feature, we have renamed the feature we used to call "facets" to avoid confusion. This feature is now called "Search Tabs."

Connect Your Site to Search.gov

Most agencies add these two snippets of code to the template(s) in their websites or content management systems (rather than adding them to individual pages).

7. Does your search box point to Search.gov? Update your search box form code point to our service so that, when users execute a search, they’ll see your Search.gov-hosted results page.

<form accept-charset="UTF-8" 
action="https://search.usa.gov/search" 
id="search_form" 
method="get">
<div style="margin:0;padding:0;display:inline">
	<input name="utf8" type="hidden" value="&#x2713;" />
</div>
<input id="affiliate" name="affiliate" type="hidden" value="YourSiteHandle" />
<label for="query">Enter Search Term(s):</label>
<input autocomplete="off" 
	class="usagov-search-autocomplete" 
	id="query" 
	name="query" 
	type="text" />
<input name="commit" type="submit" value="Search" />
</form>

8. Do you have our Javascript tag on your webpages? This Javascript powers the suggestions for typeahead and related searches. It also provides data on your trending URLs on the Site Overview page in the Admin Center.

<script type="text/javascript">
//<![CDATA[
	 var usasearch_config = { siteHandle:"YourSiteHandle" };
 	var script = document.createElement("script");
 	script.type = "text/javascript";
 	script.src = "//search.usa.gov/javascripts/remote.loader.js";
 	document.getElementsByTagName("head")[0].appendChild(script);
//]]>
</script>

Set Up Nice-to-have Features (Optional)

9. Have you masked your domain? We offer DNS masking, which allows you to show searchers search.YOURSITE.gov (instead of search.USA.gov). If you leverage DNS masking you will have to change your search box form action from search.usa.gov to search.YOURSITE.gov. Be sure to alert us you will be adding a domain mask, so we can add you to our SSL certificate before you update your search box form code.

10. Have you added the Javascripts for your other third-party web services to your results page? If you have a third-party service running on your website, you likely want it to run on your results page. Agencies often include their Foresee, Google Analytics, Omniture, or WebTrends code, among others. If your federal website participates in the Digital Analytics Program, you do not need to take any action: DAP code is included on your results page, by default.

Don’t Forget SEO

11. Have you registered your site with the major commercial search engines? Register for both Bing Webmaster Tools and Google Webmaster Tools to maximize the coverage of your content in their search results.