Web Tracking: Tracked Links Containing Anchors or Hashtags (#) Are Broken
(Doc ID 2186006.1)
Last updated on NOVEMBER 13, 2019
Applies to:Oracle Eloqua Marketing Cloud Service - Version 10 and later
Information in this document applies to any platform.
Tracked links that have anchors or contain a hashtag (#) character are broken. When an anchor is included in a tracked URL, Eloqua shifts the anchor code to the end. This means that the anchor/hashtag information appears after any parameters, if included, and after the elqtrackid query string.
The ?elqTrackId= query string should be appended to the end of the URL
The ?elqTrackId= is getting added before the anchor/hashtag (#) code in the URL
Steps to Reproduce
- Create a responsive email asset (see note below for non-responsive assets)
- Add this to some text as a hyperlink (ensure that the checkbox for Add tracking for untracked external pages is ticked):
This issue is caused by the location of the # character within the URL. Because the # character was originally used at the end of a URL to indicate an anchor, when it is placed in the middle of the URL - it causes a conflict when Eloqua attempts to add external website tracking elements to the email.
When the # character appears at the end of a URL, it is often used as an anchor to jump to an element with the same name/ID. Eloqua interprets this character to indicate the end of a link and, therefore, will automatically insert the tracking parameters before the #.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document
Symptoms Changes Cause Solution Link Shortener Manually Change the Tracked URL Related Reading References
My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.