Search code examples
htmlemailanchorquery-stringhyperlink

HTML anchor and query string


Is it possible to do something like the URL below?

myurl.co.uk/#myAnchor?myQry=this

I'm trying to pass tracking codes while also being able to have multiple links from an email go to relevant parts of my page.

This currently seems to do nothing as it is. Is it actually possible.


Solution

  • The query goes before the anchor, so:

    http://example.com/page.php?parameter=value#anchor