How to optimise your URLs

What a properly optimised URL looks like, how to make URLs web friendly for SEO, how to track campaigns with UTM parameters, and how to use short links and QR codes without losing data

SEO Article
20 mins

By Daniel Rowles, lead trainer at Target Internet and author of Digital Branding (Kogan Page). Last updated: November 2026.

URL optimisation means making your web addresses short, readable and descriptive, so that people and search engines can tell what a page is about before they click. A properly optimised URL uses a few lowercase words separated by hyphens, sits in a logical folder structure and avoids unnecessary parameters. For campaigns, it also means adding consistent UTM parameters so you can track where visits came from.

What are the parts of a URL?

A URL (uniform resource locator) is the address of a resource on the web, such as a page, an image or a PDF. Most people never type one: they click a link, a search result or a QR code, and the URL loads in the browser's address bar. But every part of it can be shaped to support your marketing.

The anatomy of a URL: the scheme such as https, the subdomain such as www, the domain such as example.com, the path such as /blog/url-tips, parameters such as ?utm_source=linkedin and the fragment such as #faq
The six parts of a URL.

Here is what each part does.

  • Scheme. Almost always https:// today. Secure connections are expected by browsers, users and search engines.
  • Subdomain. Such as www. or shop. Use them sparingly; content you want to rank is usually best kept on your main domain.
  • Domain. Your brand's address, such as targetinternet.com.
  • Path. The part after the domain that describes the page, such as /blog/url-tips. This is the part most marketers control through their CMS.
  • Parameters. Also called the query string, starting with a question mark. They pass extra information, such as tracking codes or filter settings.
  • Fragment. The part after a #, which usually jumps to a section of the page.

What does a properly optimised URL look like?

A properly optimised URL tells a person what to expect from the page in a glance. Compare these examples.

URL optimisation examples: avoid /index.php?id=4832&cat=7, /Blog/URL_Tips_FINAL and long dated paths, and use /shoes/running, /blog/url-tips and /guides/utm-parameters instead
Properly optimised URL examples, and the patterns to avoid.

Google's own URL structure guidance sets out the principles behind those examples. These are the ones that matter most for web friendly URLs.

  • Use readable words. Descriptive words beat long ID numbers and cryptic strings.
  • Separate words with hyphens. Hyphens signal a word break, while underscores tend to read as joined words, so url-tips is better than url_tips.
  • Use lowercase. Google treats /Apple and /apple as different URLs, so pick one case, and lowercase is the simplest rule to follow.
  • Keep parameters to a minimum. Remove parameters that do not change the page content, because extra URL variants can waste crawling.
  • Do not use fragments to change content. If JavaScript changes what a page shows, use proper URLs rather than the part after the #.

Beyond those technical rules, three habits make URLs work harder for marketing:

  1. Make the path fit the content. The slug should describe what the page actually covers. If the page changes focus before launch, change the slug too.
  2. Organise content into sensible folders. A path such as /guides/seo/ or /shoes/running/ helps people and search engines understand how your site fits together. Keep it shallow; two or three levels is usually plenty.
  3. Include the main keyword where it is natural. URL words are a small signal for search engines, but a clear keyword helps people recognise a relevant result. Leave out stop words, dates and anything that will go out of date, such as "2019" or "new". Our guide to writing evergreen content for SEO explains why timeless slugs and content age better.

It is worth keeping expectations realistic. Since January 2025, Google's mobile search results show only the domain, not the breadcrumb path, while desktop results still show both. So a tidy path matters less as a visible click-magnet in mobile search than it once did, but it still matters when URLs are shared, read aloud, pasted into messages and cited by AI tools.

Copy and paste prompt: "Act as an SEO editor. Here are the page titles and current URLs for [number] pages on my website: [paste list]. For each page, suggest a short, lowercase, hyphen-separated slug of three to five words that includes the main topic, avoids dates and stop words, and fits this folder structure: [describe your folders]. Flag any current URLs that are already good enough to keep, so I do not change them unnecessarily."

How do you change a URL without losing traffic?

Getting the slug right before you publish is easy. Changing it afterwards is riskier, because any links pointing at the old address, from your own pages or from other websites, will break, and you may lose the search visibility the page has built up. The rule of thumb is simple: only change a published URL when there is a clear benefit, and always redirect the old one.

How to change a URL safely: check backlinks and traffic, set up a 301 redirect to the new URL, update internal links and the sitemap, and monitor Search Console
Four steps to change a URL without losing traffic.

Follow these steps whenever you change a published URL.

  1. Check. Look at the page's traffic and backlinks first. A page that ranks well with an imperfect URL is often best left alone.
  2. Redirect. Set up a permanent (301) redirect from the old URL to the new one. Google's guidance on redirects and Google Search explains the options.
  3. Update. Change your internal links, navigation and XML sitemap to point at the new URL directly, rather than relying on the redirect.
  4. Monitor. Watch the page in Search Console over the following weeks to make sure the new URL is indexed and traffic recovers.

The same thinking applies when you have several URLs showing the same content, such as product pages reachable through different filters. Our guide to using canonical tags for SEO explains how to tell search engines which version is the main one.

The Target Internet platform can help you build these skills, with interactive courses across digital marketing and AI, skills benchmarking to show where your gaps are, accredited certification, over 400 episodes of the Digital Marketing Podcast, and monthly live masterclasses.

How do UTM parameters help you track campaigns?

Adding information to the end of a URL, sometimes called link decoration, is how most campaign tracking works. The most common form is UTM parameters, which tell Google Analytics and other tools where a visit came from.

UTM parameters for campaign tracking: utm_source for where the click came from, utm_medium for the type of channel, utm_campaign for the campaign or promotion, utm_content for which ad or link was clicked, utm_term for the paid keyword and utm_id for the campaign ID
The UTM parameters most marketers use.

Google's guide to campaign URLs recommends always using utm_source, utm_medium and utm_campaign, and adding the others where they help. The free Campaign URL Builder creates tagged links for you. Here is how we would tag a LinkedIn carousel promoting this article.

Google Analytics Campaign URL Builder with source linkedin, medium social, campaign name url_guide_2026 and content carousel, generating a tagged URL for the Target Internet article on how to optimise your URLs
Building a tagged campaign URL with Google's Campaign URL Builder (screenshot, November 2026).

UTM tracking only works if everyone tags links the same way. Parameter values are case sensitive, so "LinkedIn" and "linkedin" show up as two different sources. Agree a simple naming convention, keep it in a shared spreadsheet and use it for every campaign.

A few cautions apply.

  • Never use UTM parameters on internal links. Tagging links from one page of your site to another overwrites the original source of the visit and corrupts your data.
  • Expect some tracking to be stripped. Apple's Link Tracking Protection removes user-level click identifiers such as Google's gclid and Meta's fbclid from links opened in Mail, Messages and Safari Private Browsing, although standard UTM parameters are generally left in place. Our article on Apple's iOS privacy changes covers the wider picture.
  • Accept that some sharing is invisible. Links copied into WhatsApp or email lose their referrer and often appear as direct traffic, which we explain in our guide to dark social.
  • Never put personal data in URLs. Email addresses or names in parameters can leak into analytics and other systems.

Copy and paste prompt: "Create a UTM naming convention for my marketing team. Our channels are [list channels, such as LinkedIn organic, LinkedIn ads, newsletter, Google Ads, partner sites] and our campaign types are [list]. Give me a table of approved lowercase values for utm_source, utm_medium and utm_campaign, a rule for utm_content, and three example tagged URLs for [your website]."

Should you use URL shorteners and QR codes?

Tagged URLs get long and ugly, which is where link shorteners help. A short link is easier to share in social posts, print on packaging or read aloud on a podcast, and most shortening tools also count clicks. QR codes work the same way: the code points to a URL, so a short, tagged link keeps the code simple and makes offline campaigns measurable.

The risk is that your links depend on someone else's service. Google stopped creating new goo.gl short links in 2019 and later announced that existing links would stop working in August 2025, before deciding to keep links that were still actively used. Anyone who had printed goo.gl links on materials faced the risk of dead links. The lessons are to choose an established provider, use a branded short domain you own where you can, and keep a record of where every short link points so you can recreate it if you ever need to move.

What else does URL optimisation involve?

Trust matters as much as tidiness. People have learned to be wary of strange-looking links, so clear, branded and secure URLs are more likely to be clicked.

  • Use HTTPS everywhere. Unsecured pages are flagged by browsers and undermine confidence.
  • Keep URLs reasonably short. There is no hard SEO rule on length, but shorter URLs are easier to read, share and remember.
  • Be consistent. Pick one version of your domain (with or without www, with or without a trailing slash) and redirect the others to it.
  • Avoid lookalike or generic short links in important messages. In email and SMS especially, a recognisable branded domain helps people tell your messages from phishing. Our email marketing best practice guide covers this in more detail.

Frequently asked questions

What is a properly optimised URL?

A properly optimised URL is short, lowercase and descriptive, uses hyphens between words, sits in a logical folder structure and avoids unnecessary parameters, for example /guides/utm-parameters rather than /index.php?id=4832.

Do URLs affect SEO?

Yes, but only a little. The words in a URL are a minor signal for search engines. The bigger benefits are that clear URLs are easier for people to trust and share, and a sensible structure helps search engines understand your site.

Should I use hyphens or underscores in URLs?

Use hyphens. Google's guidance says hyphens signal a break between words, while underscores tend to be read as joining words together, so a slug such as url-tips is read as two separate words. Whichever you have used in the past, be consistent, and do not change existing URLs just to swap underscores for hyphens unless you redirect them.

Should I change old URLs to make them shorter?

Usually not, unless there is a clear benefit. If you do change a published URL, set up a 301 redirect from the old address and update your internal links so you do not lose traffic.

Which UTM parameters do I need?

At a minimum, use utm_source, utm_medium and utm_campaign. Add utm_content to tell different ads or links apart, utm_term for paid keywords and utm_id if you import campaign data.

If you are ready to take a structured approach to building your digital marketing skills, explore Target Internet membership options and discover how interactive courses, benchmarking tools, the podcast, accredited certification and live masterclasses can support you and your team.

About the author

Daniel Rowles is lead trainer at Target Internet, a Senior Lecturer at Imperial College and the author of several books on digital marketing published by Kogan Page, including Digital Branding. He co-hosts The Digital Marketing Podcast and delivers digital marketing and AI training for organisations around the world. You can find out more on his Target Internet profile.

Bibliography

1. Google Search Central. URL structure best practices for Google Search. https://developers.google.com/search/docs/crawling-indexing/url-structure

2. Google Search Central (2025). Simplifying the visible URL element on mobile search results. https://developers.google.com/search/blog/2025/01/simplifying-breadcrumbs

3. Google Search Central. Redirects and Google Search. https://developers.google.com/search/docs/crawling-indexing/301-redirects

4. Google Analytics Help. URL builders: collect campaign data with custom URLs. https://support.google.com/analytics/answer/10917952

5. Google for Developers (2025). Google URL Shortener links will no longer be available [updated]. https://developers.googleblog.com/google-url-shortener-links-will-no-longer-be-available/

6. Twilio SendGrid (2023). Apple iOS 17 and email. https://sendgrid.com/blog/apple-ios-17-email

Build a ü free personalised ¥ learning plan to see our course recommendations î for you

Free for 30 days

Build a å free personalised ¥ learning plan to see our course recommendations î for you

Free for 30 days