Title: [Plugin: Google Analytics] Comment author broken link fix
Last modified: August 19, 2016

---

# [Plugin: Google Analytics] Comment author broken link fix

 *  Resolved [alism](https://wordpress.org/support/users/alism/)
 * (@alism)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/plugin-google-analytics-comment-author-broken-link-fix/)
 * Hopefully the following helps someone…
 * There’s a solution in another thread for the Google Analyticator plugin, but 
   the Google Analytics plugin (Boakes v0.68) also has a similar problem with WordPress
   2.7 – ie homepage links in comments have: “‘%20rel=’external%20nofollow” appended
   to the end of the URL.
 * To fix it, the following should work. Find the code:
 *     ```
       function comment_author_link($text) {
       	static $anchorPattern = '(.*href\s*=\s*)[\"\']*(.*)[\"\'] (.*)';
       ```
   
 * and replace it with:
 *     ```
       function comment_author_link($text) {
       	static $anchorPattern = '(.*href\s*=\s*)[\"\']*(.*\?)[\"\'] (.*)';
       ```
   

Viewing 1 replies (of 1 total)

 *  [grafphoto](https://wordpress.org/support/users/grafphoto/)
 * (@grafphoto)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-google-analytics-comment-author-broken-link-fix/#post-925144)
 * **Thank you very much for this!!** I was wondering why all author comments had
   broken links to their respective sites. Solved my issue with my 2.7 Upgrade.

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Google Analytics] Comment author broken link fix’ is closed 
to new replies.

 * 1 reply
 * 2 participants
 * Last reply from: [grafphoto](https://wordpress.org/support/users/grafphoto/)
 * Last activity: [17 years, 5 months ago](https://wordpress.org/support/topic/plugin-google-analytics-comment-author-broken-link-fix/#post-925144)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
