Short answer: A space isn't a valid character in a web address. When a link contains one, the app or tool showing it has to guess what you meant: some encode it as %20, some stop the link at the space. In UTM values, replace spaces with - or _ so the value stays the same everywhere.
What does a space do to a link?
Space in a link: a blank character inside a web address, which the link standard does not allow and which must be written as %20 to be part of the address.
Percent-encoding: the way a link writes characters it can't contain directly, as % followed by two hex digits. A space becomes %20, = becomes %3D and & becomes %26.
The standard for web addresses, RFC 3986, has no place for a raw space. So a link with a space in it is, strictly, two pieces of text side by side.
Why do spaces break campaign tracking?
Because different tools handle the gap differently. A link with a space may be shortened at the space, encoded as %20, or encoded some other way by a form or spreadsheet, so one campaign name can arrive in several versions.
- Cut short: a chat app or email client may make only the first part clickable, so
utm_campaign=diwali salearrives asdiwali. - Encoded differently: reports may show
diwali%20salefrom one tool and something else from another. - Split rows: each version counts as a separate campaign, because reports store UTM values exactly as they arrive. See inconsistent UTM naming.
Example
A link with spaces in the campaign and content values:
https://example.com/sale?utm_source=instagram&utm_medium=paid_social&utm_campaign=diwali sale&utm_content=reel 01
The fixed link, with underscores instead:
https://example.com/sale?utm_source=instagram&utm_medium=paid_social&utm_campaign=diwali_sale&utm_content=reel_01
If a space is part of the page address itself, such as a file name, encode it as %20 rather than renaming the value.
How to fix it
- Paste the link into the link checker. It warns when a link contains spaces and shows which tag they are in.
- In UTM values, replace each space with
_or-. Use the same separator in every link. - In the page address, encode spaces as
%20, or better, ask for a page address without spaces. - Build new links in the UTM builder with "make values lowercase and replace spaces" ticked. It does this for you.
- Watch for spaces at the very start or end of a value. They're invisible when you copy and paste, but they still count.
- Check the final link again after pasting it into the ad or email tool, in case the tool changed it.