How to keep URL parameters and anchors in a QR code

Preserve existing query parameters and a page fragment when generating a URL QR code.

Paste the full address, including its query and fragment. When you add UTM fields, inspect the final URL for the existing parameters and the fragment before downloading.

Recognize the parts of a URL

In https://example.com/?ref=desk#details, ref=desk is a query parameter and #details is the fragment. The fragment belongs at the end. The destination page determines whether it scrolls to a section.

Test a URL that has both

  1. Paste https://example.com/?ref=desk#details into the URL generator and add a test campaign.
  2. Check that ref=desk remains in the Final URL and that #details still appears after the query string.
  3. Generate and read back the PNG. For your real link, also open it and verify the browser goes to the intended section.

If a tracking value changed

Check whether you set a UTM field that was already in the address. The final URL shows what the generator will encode. Review it before downloading.

Frequently asked questions

Can the QR reader confirm that an anchor exists?

It can confirm the fragment was encoded. Test the actual destination page to verify that it recognizes it.