Find it in the Admin Center: Search.gov Home > Admin Center > YourSite > Analytics > 3rd Party Tracking
Do you want your search results page to run third-party web services such as Foresee, Google Analytics, Omniture, Siteimprove, or WebTrends?
- Click submit to send us your request.
- We’ll review and reach out if we have any questions.
- When confirmed, we will insert the code into your production results page and email you to notify you that the process is complete.
Some tips for commonly used third-party web services follow.
Google Tag Manager
We do not officially support Google Tag Manager. If you add a Google Tag Manager script to our system, we cannot review the individual scripts for content or quality. You assume full responsibility for the scripts managed in your GTM account, and for the script actions that are run on our results page on your behalf. A note about the differences between our third party tracking support and GTM recommendations:
|Google Tag Manager Guidance||Search.gov script support|
|Place primary snippet in the |
head of the html file
|Snippet is placed at the end of the |
|Place secondary snippet at the beginning of the |
|Does not place secondary tag|
Despite these differences, our agency partners appear to have success in using GTM with our results page.
Within your Google Analytics account, select the option, Do Track Site Search. Set the query parameter as query. For more information, read Google’s tip, Set Up and Configure Site Search (External link).
For more information, read Google’s tip, Tracking Multiple Domains (External link).
The code you submit should look something like this:
Digital Analytics Program
Does your federal agency participate in the Digital Analytics Program (DAP)? You don’t need to do anything. We’re already fully integrated with DAP. If you use the
search.usa.gov domain on your results page, your data will be located within the GSA Agency Profile in DAP. To bring your Search.gov DAP data into your own agency’s DAP profile, you must set up a domain mask.
Note: You do not need to submit the DAP script to us.
Coordinate with your ForeSee representative and the Search.gov team to implement your customer satisfaction survey on your results page. The four general steps follow.
Email us at email@example.com to set up a CNAME for
Update the files path in your Foresee code to use an absolute path instead of a relative path.
Find => ‘files’: ‘/fsrscripts/’,
and replace it with => ‘files’: ‘https://www.YOURAGENCY.gov/fsrscripts/’,
(Or, find => ‘files’: ‘/foresee/’, and replace it with => ‘files’: ‘https://www.YOURAGENCY/foresee/’,)
in the following five files.
Submit your foresee-trigger.js via our Admin Center. It should look something like the following script.
We’ll send you an email to confirm that we’ve set up both your CNAME and added the script for your foresee-trigger.js file.
Did you know? We use Google Analytics Web analytics software — our own tag plus the Digital Analytics Program tag — by default. Email us at firstname.lastname@example.org if you’d like to opt out. Learn more in our terms of service.