Data and analytics
How to use tools such as Content Data and Google Analytics to improve your content's search engine optimisation (SEO) and get data on how users are interacting with your content.
Use popular keywords to make the most of search engine optimisation (SEO)
Search engines are where most users start their search for information. If they cannot find your page, they will not get to your content.
If you use their vocabulary, starting with your page title, summary and first paragraph, users will be more likely to find it.
Find out how popular keywords are
Use search tools like the Google Ads Keyword Planner to find the keywords that people are searching for in Google. The words you use to describe your content may not be the words your users use to try and find it.
To use Keyword Planner, you need to register with Google Ads:
- Click ‘Start now’, then click ‘Switch to Expert Mode’, and then click ‘Create an account without a campaign’
- Confirm your billing information (you will not be charged as long as you do not set up any campaigns)
- Click ‘tools and settings’ from the top menu, and then ‘Keyword planner’ under the ‘Planning’ heading
To search for a term:
- Click ‘Discover new keywords’
- Enter your keyword in the search field
- Make sure your results are filtered to UK - the area is shown next to the keyword search bar on the results page
The results page will show the average monthly searches for your keyword (in a range, rather than the exact number). It also shows other keyword ideas and their average monthly searches.
Compare keywords over time
The Google Ads Keyword Planner gives average monthly search figures within certain ranges, such as 1,000 to 10,000 or 10,000 to 100,000. This means it might be less useful if comparing two or more keywords and they fall in the same range. It also does not show variations between different months.
Google Trends allows you to compare alternative keywords, and shows trends over time.
You can enter a search term to see the ‘interest over time’. At the top of the results page, you can add other terms to compare them on the same graph.
Make sure your results are filtered to the UK - you can change this under the search terms on the results page.
Optimise content for search
Once you know the most popular keywords you can prioritise them in the:
- title
- introductory sentence/summary
- headings
- chapter/part titles
- metadata descriptions (only for ‘mainstream’ content)
Example
When updating guidance on getting an MOT for large vehicles, we wanted to check whether users more commonly search for ‘heavy goods vehicle’ (or just ‘HGV’) or ‘lorry’.
At the time of checking, the Google Ads Keyword Planner showed that ‘HGV MOT’ and ‘Lorry MOT’ both had an average of 100 to 1,000 searches per month. ‘Heavy goods vehicle MOT’ only had 10 to 100, so this also suggests the acronym is well recognised and worth using.
When comparing ‘HGV MOT’ and ‘Lorry MOT’ on Google Trends over the same period, it showed that ‘HGV MOT’ was the more popular term most of the time.
If we had just been checking whether users were searching for the full term or the acronym, using the Keyword Planner would have given us the information we needed. But checking on Google Trends as well helped with the decision between ‘HGV’ and ‘lorry’.
We also look at what people are searching for on GOV.UK with the Google Analytics Search Terms report. This is helpful to understand what people want specifically from government, not the whole internet.
You’ll need a GOV.UK Google Analytics account to access this link. If you do not have an account, you can request a report from your department’s GOV.UK lead.
Specify the term you want data on; for example to confirm demand for ‘widow’s pension’ you can ask to see how many people searched for this within a certain time period.
You can also find out what people are searching for when they’re on a particular page. You can either use:
- the Content Data tool - you can search for the page by title or URL
- a Google Analytics Search pages report - copy the slug into the search bar at the top of the table of results
These terms can tell you what users are missing in our content. You can read more about this in a GDS blog post.
Meta descriptions
We do not currently make our meta descriptions available for Google to use in search results, but they’re used on browse pages and in internal search results. Meta descriptions help clarify the purpose of the page and focus on the user need.
You can use GovSearch to search GOV.UK content for:
- specific keywords or phrases (and how many times they occur in the content)
- specific links
- relationships to organisations, topic tags, publishing applications and language
You can filter search results on the page - for example, by document type, publishing state, or first and last published date. You can also export data as a csv file.
How it works
You can use GovSearch to search for keywords in:
- titles (h1)
- descriptions (Whitehall summary text)
- body text
Not all content is tagged to an organisation or topic. Try searching with and without these filters to get the fullest results.
Access GovSearch
You’ll need a Signon account to access GovSearch.
Knowing which search terms are ‘trending’ on GOV.UK (being searched for more than usual) can help you to spot user needs that are new or growing in popularity.
GOV.UK trending searches dashboard
The GOV.UK trending searches dashboard pulls in data from Google Analytics into Google Sheets. Then it filters the data to show only what’s being searched for more than usual (compared to yesterday, last week or last month).
Customise the GOV.UK trending searches dashboard
The GOV.UK trending searches dashboard shows search patterns across the whole of GOV.UK.
But if you have a GOV.UK Google Analytics account, you can customise the dashboard so it’s more relevant to your organisation. It works by setting up a ‘segment’, so that the dashboard only shows data about a visit if that visit includes a page published by your organisation.
Bear in mind that segmented data from Google Analytics is sampled to speed up processing.
If you do not have a GOV.UK Google Analytics account, you’ll need to ask your department or agency’s GOV.UK analytics lead to customise the dashboard for you.
Step 1: make a copy of the dashboard
Make a copy of the GOV.UK trending searches dashboard. To do this, go to File > Make a copy, then save a new version.
Step 2: set up a segment so the data is more relevant to your organisation
Go to the Report Configuration tab in your copy of the dashboard. Paste this code into cell B12:
sessions::condition::ga:customVarValue9=~^<D10>
D10 is the organisation ID for the Department of Work and Pensions (DWP). Change the letter and number to match your own organisation ID.
To find your organisation ID, open up a new browser window and go to your organisation home page on GOV.UK. Then right click and select ‘View source’. Find the ‘govuk:analytics:organisations’ line and copy the ID. For example, on the DWP organisation home page it looks like this:
<meta name="govuk:analytics:organisations" content="<D10>">
Step 3 (optional): add searches associated with mainstream content
GOV.UK mainstream content does not currently have organisation IDs for analytics. But you can segment content by the top-level browse section that it belongs to.
To combine more than one segment, use a comma (with no spaces). If there’s a comma in the name of the browse section, you’ll need to put a backslash in front of it.
So, for data about users who viewed any content tagged with the DWP organisation <D10> or any content in the mainstream ‘Benefits’ or ‘Working, jobs and pensions’ sections, you would paste this code into cell B12:
sessions::condition::ga:customVarValue9=~^<D10>,ga:customVarValue1==benefits,ga:customVarValue1==working\, jobs and pensions
Step 4: schedule updates to the data
You can set the dashboard to update automatically, every hour or every day. Go to Add-ons > Google Analytics > Schedule reports.
To refresh the data manually, go to Add-ons > Google Analytics > Run reports.
For more details about how the dashboard works, see ‘How to monitor trending searches’.
Content Data lets you compare how pages are performing with useful metrics.
You can get the following metrics through Content Data for each page on GOV.UK.
Unique page views
This represents the number of visits in which a page was viewed at least once. For example, if a user visits a page 5 times during their browsing session, this will show up as one unique pageview.
Page views
This is a count of every time a page was viewed.
For example, if someone visits page X, goes to page Y and returns to page X, then page X will have 2 page views and one unique page view.
Page views per visit
This figure is calculated by dividing Google Analytics page views by unique page views. It shows on average how many times a page was viewed during a user’s session. If a page has a high ratio (above 1.4), this indicates that users have to come back to that page within their session. If you are not expecting users to need to visit the page more than once in a session, this could indicate that they are having trouble finding information.
Searches from the page
Searches from the page shows the number of people who entered a search term in the GOV.UK search box while on the named page (called internal search in Google Analytics).
If a lot of people are searching from a page, it could suggest:
- there’s essential information missing
- the title’s misleading and people are expecting to find something else
- the page does not contain the words a user uses or recognises
If you have access to Google Analytics you can click through from Content Data to see what terms users were searching for.
Number of feedback comments
This data comes from the ‘Is there anything wrong with this page?’ form and the satisfaction survey at the end of a transaction that started on GOV.UK.
Content Data shows the number of feedback comments over time. A high rate of feedback could indicate a problem with the content.
You can see the comments themselves if you have a Signon account with Feedback Explorer permissions. Follow the link in Content Data.
Users who found the page useful
Users who found the page useful comes from the ‘Is this page useful?’ survey linked to from the footer of every GOV.UK page. It shows the percentage of users who answered ‘Yes’ rather than ‘No’ to the survey. The more users who responded, the more reliable the score is. For a more reliable score on a page that does not have many responses, choose a longer time period. This survey was introduced in February 2018 so there are no responses before this date.
If a lot of users say they did not find the page useful, it could indicate a problem with the content. Bear in mind that users may say they did not find the page useful if they did not like the answer it gave them. Also, they could be reacting to an unpopular government policy.
Reading time
Reading time is calculated by dividing the word count for the page by an average reading speed of 200 words per minute. The time it takes to read the page is rounded up to the nearest minute. This calculation does not take into account how complicated the content is or include any of the page’s attachments.
You can use word count data to understand how much time it might take your users to read every word on the page. If it takes a long time, the page might not be very usable.
Word count
Shorter content is easier to read online. Look for ways to shorten your content, or break it up with headers and bullets so it’s easier to scan.
Exporting data
You can export data from Content Data to share or analyse outside the tool.
Understanding basic reports
A quick way to see how your pages are doing is by mapping them against some key metrics and analysing how those metrics relate to each other.
You can get this by going into Behaviour > Site Content > All Pages in the Google Analytics interface and then searching for the URLs of pages you want.
Here’s what each metric means.
Unique Pageviews
This represents the number of visits in which that page was viewed. So, if a user visits a page 5 times during their browsing session, it will show up as one unique pageview in Google Analytics.
Pageviews
This is a count of every time that page was viewed.
For example, if someone visits page X, then goes to page Y and then page X again, then page X will be shown having 2 pageviews (and one unique pageview).
Entrances
This is the number of times that page was the first page on the site viewed by users.
Entrances/Pageviews
A simple calculation showing entrances to the page as a percentage of the pageviews.
Bounce Rate
The percentage of ‘single-page sessions’ – that is, users who viewed only this page and then left GOV.UK.
Average Time on Page
How long users view the page for on average.
In the web version of Google Analytics, it’s given in hours, minutes and seconds - hh:mm:ss. In exported spreadsheets, it’s just in seconds.
% Exit
The percentage of exits that were made from the page (calculated as number of exits/number of pageviews).
Find out what is the most (and least) popular content
By default, Google Analytics will order reports by the first metrics column. In the above report the Service Manual homepage was the highest visited page followed by the Digital by Default page.
The Unique Pageviews column will show you your most visited pages. Clicking on the down arrow at the top of the column will show the reverse order, ie the least visited pages.
Note that Google Analytics will only show URLs that were visited in the time period (ie, it will not show up pages which were not visited at all). All iterations of URLs will appear as well.
Find potential navigation issues
Dividing the Pageviews metric by Unique Pageviews will show on average how many times a page was viewed during users’ sessions.
A high ratio (above 1.4) indicates that users have to come back to that page within their session. This should be a primer for you to investigate the navigation from that page further to identify any issues.
You’ll need to work this out yourself by exporting the data to a spreadsheet.
Identify pages that need to be better optimised
If the Entrances/Pageviews percentage metric is low on pages getting a reasonable amount of traffic, then it suggests that users have a need for the page. However, most are having to navigate their way to get to it so better optimisation for search may be needed.
What high bounce rates suggest
Bounce rates should only be viewed against the Entrances metric and not with Pageviews.
A high bounce rate on navigation pages reveals a problem, as it indicates users are not engaging with the page. Changes should be made and the page measured again.
However, a high bounce rate on content pages is not necessarily a bad thing as users could have found the information they came for and did not need to go any further.
Length of time spent on a page
The Average Time on Page metric provides a guide to how engaged users are with your page.
However, treat with caution. This is because it excludes data from sessions in which the page was the last one visited on GOV.UK (so it does not include single page sessions).
So for pages with high bounce rates (such as news pages), the dwell time displayed by Google may be very wide of the mark. As a general rule, the lower the % Exits rate, the more representative the average time on the page will be.
How to build reports for your own content
If there are sets of pages you frequently measure, you can save time by building your own custom reports. To do this, you could replicate the above report and filter it for your own pages or you could click on this custom report and save it in the ‘1.GOV.UK (Entire site – Filtered)’ view.
Find out how many users visited the page from a link
To find out how many users visit a page from a particular link, you can use UTM parameters. This involves adding ‘utm’ plus some code to the end of a link.
UTM parameters have 3 main parts:
- source - this tracks which platform users come from
- medium - the type of channel you’re using for a campaign
- campaign - the name of the campaign or activity
For example: gov.uk/check-a-passport-travel-europe-1-january-2021?utm_source=hmpo_print&utm_medium=offline&utm_campaign=transition
You can add UTM parameters to the end of any GOV.UK URL.
You can also add UTM parameters to your short URL request.
After a UTM parameter has been created and published, you can see how many users come to the page from the URL in the Acquisition section of Google Analytics.
You can also build a custom report to view this data in the future.
To find out more, ask your department’s Analytics Single Point of Contact or use the analytics access, reports and help support form to ask GDS for analytics help.
You can use Feedback Explorer (also known as ‘Feedex’) to find out what users are saying about your content. You’ll need a Signon account with Feedback Explorer permissions to get access. Contact GDS to ask for access to Feedback Explorer.
Feedback Explorer lets you view anonymous feedback from GOV.UK users.
Users submit this feedback:
- via the ‘Is there anything wrong with this page?’ form at the bottom of GOV.UK pages
- by filling out the satisfaction survey at the end of a transaction that started on GOV.UK
You can use Feedback Explorer to find out if users:
- are having technical difficulties (broken links etc)
- cannot find the information they need
- are struggling to navigate content
- do not understand something
Why it’s useful
Feedback Explorer can help you understand your users and make informed content decisions.
It’s especially useful if lots of users are saying the same thing, or what they’re saying is supported by:
- reports from contact centres
- feedback from policy colleagues
- named contacts via Zendesk
- searches on GOV.UK
- analytics data
How to use Feedback Explorer
Go to Feedback Explorer.
You can filter feedback by:
- organisation (for example all Home Office content)
- date to see feedback over different periods of time
- the first part of the URL (for example putting ‘www.gov.uk/child-tax-credit’ will show the feedback on all the pages in the guide)
You can export the feedback as a CSV file. The CSV will show more information (for example browsers people use) in separate columns, to make it easier to filter and sort.
You can filter by Whitehall pages. Add “&path=/government” to the end of the URL in your browser. This filter will not show detailed guides.
The ‘Referrer’ column shows where the user came from before they arrived on the page where they left feedback.
Contact GDS if you notice that lots of users are having the same problem on a mainstream page. Please include any information you have that might help to solve the problem.