In a URL, a hash (#
) points a browser to a specific spot in a page or website.
Hashes may not work in some browsers
If you use URLs with hashes in your click string macro (%c
) in IFrame/JavaScript tags, JavaScript tags, or static click tracker tags, they may not work.
For example, if you use the URL http://example.com/#section2
in your ad tag, some browsers may direct to: http://example.com
Depending on the site, content might not be displayed correctly because the end of the URL is missing.
To fix the problem, encode the hash
To make sure the hash and the identifier are included in your click tracking tags, encode the hash. In your URL, replace #
with %23
. For example,
- Before:
http://example.com/#section2
- After:
http://example.com/%23section2
If you set exit URLs using feeds or in the creative code, use
%23
instead of #
.