• Smart Map conflicts with “Google Analytics for WordPress” (http://wordpress.org/extend/plugins/google-analytics-for-wordpress/) when the default option to “Track outbound clicks” is set for the Google Analytics plugin.

    To fix, you can disable the “Track outbound clicks” option for the Google Analytics plugin or if you need to track outbound clicks you could try editing line 414 of smart-map.php and change it from:

    $r.= "<script type=\"text/javascript\">showmap%%internid%%();document.write('$m');</script>";

    to:

    $r.= "<script type=\"text/javascript\">showmap%%internid%%();</script>";

    the chunk of code document.write('$m'); inserts a link using Javascript which credits the author of the Smart Map plugin as $m evaluates as <a href="http://www.sorben.org/smart-map/"><img border="0" style="margin: 0px;" src="http://www.sorben.org/smart-map/1.gif" /></a>

    You may experience problems with the Smart Map code being cached. I didn’t need to track outbound clicks so I didn’t edit the code above.

    If you do edit the above code then, you will remove a link to sorben.org which credits the author of the plugin – an unfortunate trade-off…

    http://wordpress.org/extend/plugins/smart-map/

  • The topic ‘Smart Map conflicts with Google Analytics for WordPress’ is closed to new replies.