<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">diff --git a/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php b/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php
index 054d9ba..027be87 100644
--- a/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php
+++ b/wp-content/plugins/google-analytics-for-wordpress/googleanalytics.php
@@ -413,16 +413,21 @@ if ( ! class_exists( 'GA_Filter' ) ) {
 			$dlextensions = split(",",$options['dlextensions']);
 			if ( $target["domain"] != $origin["domain"] ){
 				if ($options['domainorurl'] == "domain") {
-					$coolBit .= "onclick=\"javascript:pageTracker._trackPageview('".$leaf."/".$target["host"]."');\"";
+					$coolBit .= "javascript:pageTracker._trackPageview('".$leaf."/".$target["host"]."');";
 				} else if ($options['domainorurl'] == "url") {
-					$coolBit .= "onclick=\"javascript:pageTracker._trackPageview('".$leaf."/".$matches[2]."//".$matches[3]."');\"";
+					$coolBit .= "javascript:pageTracker._trackPageview('".$leaf."/".$matches[2]."//".$matches[3]."');";
 				}
 			} else if ( in_array($extension, $dlextensions) &amp;&amp; $target["domain"] == $origin["domain"] ) {
 				$file = str_replace($origin["domain"],"",$matches[3]);
 				$file = str_replace('www.',"",$file);
-				$coolBit .= "onclick=\"javascript:pageTracker._trackPageview('".$options['dlprefix'].$file."');\"";
+				$coolBit .= "javascript:pageTracker._trackPageview('".$options['dlprefix'].$file."');";
 			}
-			return '&lt;a ' . $matches[1] . 'href="' . $matches[2] . '//' . $matches[3] . '"' . ' ' .$coolBit . $matches[4] . '&gt;' . $matches[5] . '&lt;/a&gt;';    
+			if (preg_match('/onclick=[\'\"](.*?)[\'\"]/i', $matches[4]) &gt; 0) {
+				$matches[4] = preg_replace('/onclick=[\'\"](.*?)[\'\"]/i', 'onclick="' . $coolBit .' $1"', $matches[4]);
+			} else {
+				$matches[4] = 'onclick="' . $coolBit . '"' . $matches[4];
+			}
+			return '&lt;a ' . $matches[1] . 'href="' . $matches[2] . '//' . $matches[3] . '"' . ' ' . $matches[4] . '&gt;' . $matches[5] . '&lt;/a&gt;';
 		}
 
 		function ga_parse_article_link($matches){
</pre></body></html>