Title: JavaScript Links destroyed in HTML
Last modified: January 16, 2017

---

# JavaScript Links destroyed in HTML

 *  Resolved [crispress](https://wordpress.org/support/users/crispress/)
 * (@crispress)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/javascript-links-destroyed-in-html/)
 * Hi there,
 * I need to implement a JS link:
    `<a href=“javascript:someFunction()“>Click me
   to execute script</a>`
 * Slim Stat converts that to:
    `<a href="“javascript: javascript:someFunction()“"
   data-slimstat-clicked="false" data-slimstat-type="2" data-slimstat-tracking="
   false" data-slimstat-callback="false">Click me to execute script</a>`
 * And the link is not working. What can I do?

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/javascript-links-destroyed-in-html/#post-8660351)
 * Hi,
 * You can add `class='noslimstat'` to your link to prevent Slimstat from messing
   around with it. You can also use other criteria, and then configure the corresponding
   option in the Settings, as explained in our knowledge base:
 * [https://slimstat.freshdesk.com/support/solutions/articles/5000528532-can-i-disable-outbound-link-tracking-on-a-given-link-](https://slimstat.freshdesk.com/support/solutions/articles/5000528532-can-i-disable-outbound-link-tracking-on-a-given-link-)
 * Best,
    Jason
    -  This reply was modified 9 years, 3 months ago by [Jason Crouse](https://wordpress.org/support/users/coolmann/).
 *  Thread Starter [crispress](https://wordpress.org/support/users/crispress/)
 * (@crispress)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/javascript-links-destroyed-in-html/#post-8660787)
 * Thanks for your quick reply, Jason. The output is the same (Slim Stat classes
   still in the link), but, stupid me, the problem here wasn’t Slim Stat, but the
   curly quotes which I didn’t see when I copied the link snippet from a webpage…
   Damn, the Error – most of the time in front of the display. 😀
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/javascript-links-destroyed-in-html/#post-8660951)
 * Glad to hear you figured it out. A review for Slimstat would be a nice way to
   say thank you 🙂
 * Best,
    Jason
 *  Thread Starter [crispress](https://wordpress.org/support/users/crispress/)
 * (@crispress)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/javascript-links-destroyed-in-html/#post-8661828)
 * It’s not that I can’t can come up with a real bug! 😉
    The realtime widget in
   WP Admin main page doesn’t work, it always says “no data”. Other Slim Stat widgets
   do work.
 * Review written, gladly, Ticket can be closed. 🙂 Thanks!
 * Edit: I guess I should shut up. 😀 “Users currently Online” says “No Data”, and
   that’s likely because no known users are online?
    “Currently Online” works, but
   should probably show pages along with (to my taste).
    -  This reply was modified 9 years, 3 months ago by [crispress](https://wordpress.org/support/users/crispress/).
    -  This reply was modified 9 years, 3 months ago by [crispress](https://wordpress.org/support/users/crispress/).
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/javascript-links-destroyed-in-html/#post-8662453)
 * You can always take a look at Settings > Maintenance to see if the tracker is
   reporting any errors there. Are you using any of our premium add-ons, like Custom
   DB? That might also be the cause for not seeing any data in those reports (permission
   issue).
 * Thank you for your review, it is very much appreciated.
 * Jason
 *  Thread Starter [crispress](https://wordpress.org/support/users/crispress/)
 * (@crispress)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/javascript-links-destroyed-in-html/#post-8663408)
 * Yes, I have Custom DB installed, but not customized yet (points still to the 
   main DB). The tracker reports no errors.
    “Users currently Online” – what is 
   that supposed to show? Website users, or WordPress users?
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/javascript-links-destroyed-in-html/#post-8666155)
 * WordPress users.
 *  Thread Starter [crispress](https://wordpress.org/support/users/crispress/)
 * (@crispress)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/javascript-links-destroyed-in-html/#post-8677710)
 * Thanks, Jason. Then it’s clear why it doesn’t show data.
    You should now really
   close this ticket, before I ask even more unqualified and offtopic questions!
   😉
 * Thanks! 🙂
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/javascript-links-destroyed-in-html/#post-8679891)
 * Thanks

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘JavaScript Links destroyed in HTML’ is closed to new replies.

 * ![](https://ps.w.org/wp-slimstat/assets/icon.svg?rev=2832242)
 * [SlimStat Analytics](https://wordpress.org/plugins/wp-slimstat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-slimstat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-slimstat/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-slimstat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-slimstat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-slimstat/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/javascript-links-destroyed-in-html/#post-8679891)
 * Status: resolved