Title: [Plugin: Google Analytics for WordPress] Rendering bug?
Last modified: August 19, 2016

---

# [Plugin: Google Analytics for WordPress] Rendering bug?

 *  [djpeanut](https://wordpress.org/support/users/djpeanut/)
 * (@djpeanut)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-rendering-bug/)
 * Hi,
 * I have a fairly markup-heavy page on my WordPress site which seems to end up 
   in a mess once Google Analytics for WordPress has had it’s way with the links.
   The page is at [http://www.ride-earth.org.uk/podcast/](http://www.ride-earth.org.uk/podcast/).
   It seems to be failing to close the iTunes onclick link properly and then repeating
   several lines of the original code again.
 * BEFORE:
 *     ```
       <div style="background-color:#CCE6C8;clear:both;border-bottom:2px solid #fff;text-align:center;margin:0 30px;padding:3px 10px">
   
       <a href="/podcast/episode-four-switzerland-to-austria/">Watch the previous episode</a>
        | next episode coming soon
        | <a title="Add the Ride-Earth podcast to your iTunes" href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=260068214">subscribe with iTunes</a>
        | <a title="Download this episode directly from Ride-Earth.org.uk" href="http://ride-earth.stringfilms.tv/episode5.mov">download directly</a>
        | or add <a href="http://podcast.ride-earth.org.uk/podcast.xml">the feed</a> to your favourite podcast software
   
       </div>
       ```
   
 * AFTER:
 *     ```
       <div style="background-color:#CCE6C8;clear:both;border-bottom:2px solid #fff;text-align:center;margin:0 30px;padding:3px 10px">
   
       <a href="/podcast/episode-four-switzerland-to-austria/">Watch the previous episode</a>
        | next episode coming soon
        | <a title="Add the Ride-Earth podcast to your iTunes" href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=260068214" onclick="javascript:pageTracker._trackPageview('/outbound/article//podcast/episode-four-switzerland-to-austria/">Watch the previous episode</a>
        | next episode coming soon
        | <a title="Add the Ride-Earth podcast to your iTunes" href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=260068214');">subscribe with iTunes</a>
        | <a title="Download this episode directly from Ride-Earth.org.uk" href="http://ride-earth.stringfilms.tv/episode5.mov" onclick="javascript:pageTracker._trackPageview('/outbound/article/http://ride-earth.stringfilms.tv/episode5.mov');">download directly</a>
        | or add <a href="http://podcast.ride-earth.org.uk/podcast.xml" >the feed</a> to your favourite podcast software
   
       </div>
       ```
   
 * The result is that the first two links are rendered twice, and that one of them
   is invalid javascript.
 * Any ideas – it’s a strange one…

Viewing 1 replies (of 1 total)

 *  Thread Starter [djpeanut](https://wordpress.org/support/users/djpeanut/)
 * (@djpeanut)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-rendering-bug/#post-938464)
 * Looking at it again, this entire stretch of code is being put in a single javascript
   function argument by the plugin (look at where the (‘ and ‘) occur). Browser 
   is rendering the argument as HTML:
 * `onclick="javascript:pageTracker._trackPageview('/outbound/article//podcast/episode-
   four-switzerland-to-austria/">Watch the previous episode</a> | next episode coming
   soon | <a title="Add the Ride-Earth podcast to your iTunes" href="http://phobos.
   apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=260068214');"`

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Google Analytics for WordPress] Rendering bug?’ is closed to
new replies.

## Tags

 * [html](https://wordpress.org/support/topic-tag/html/)
 * [markup](https://wordpress.org/support/topic-tag/markup/)
 * [render](https://wordpress.org/support/topic-tag/render/)

 * 1 reply
 * 1 participant
 * Last reply from: [djpeanut](https://wordpress.org/support/users/djpeanut/)
 * Last activity: [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-google-analytics-for-wordpress-rendering-bug/#post-938464)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
