href attributes moved
-
When activating “Track outbound click & downloads”, 5.0.5 moves the href tag into wrong tags when there’s anchors. Here’s an example code where problems are happening:
Without the plugin. Note the anchor without “href” in front, and where the “href” is:
<li value=16><a name="20656826"></a><strong>Kiessling?F</strong>. <a href="https://dx.doi.org/10.1148/radiol.100717" target="_blank">Science to practice: the dawn of molecular US imaging for clinical cancer imaging.</a> <i>Radiology</i>. 2010;256(2):331?3.</li>
With the plugin. Note where the href went:
<li value=16><a href="https://dx.doi.org/10.1148/radiol.100717" onclick="_gaq.push(['_trackEvent', 'outbound-article', 'https://dx.doi.org/10.1148/radiol.100717', 'Science to practice: the dawn of molecular US imaging for clinical cancer imaging.']);" name="20656826"></a><strong>Kiessling?F</strong>. <a target="_blank">Science to practice: the dawn of molecular US imaging for clinical cancer imaging.</a> <i>Radiology</i>. 2010;256(2):331?3.</li>
https://www.ads-software.com/plugins/google-analytics-for-wordpress/
- The topic ‘href attributes moved’ is closed to new replies.