Title: Fatal Error with javascript code inserted
Last modified: October 21, 2016

---

# Fatal Error with javascript code inserted

 *  [aplusnetsolutions](https://wordpress.org/support/users/aplusnetsolutions/)
 * (@aplusnetsolutions)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-with-javascript-code-inserted/)
 * Hello,
    My client’s site is [http://texasbariatricspecialists.com/](http://texasbariatricspecialists.com/).
   I have a custom link in the top right button called eStore. I need to add Google
   Analytics tracking for clicks from that button. I have your plugin installed.
   When I input the following javascript into the javascript box for that button,
   I get an error as soon as I go to the website.
 * code I am using in the javascript box:
    _gaq.push([‘_trackEvent’, ‘Click’, ‘ThisButton’,‘
   Yes’]); window.location =”[https://www1.bariatricadvantage.com/service/referrerCode?referrer=TBS&#8221](https://www1.bariatricadvantage.com/service/referrerCode?referrer=TBS&#8221);
 * Error that is on the top of the page with that script in place:
    Fatal error:
   Call to undefined function iconv() in /home/tbs001/public_html/wp-content/plugins/
   jin-menu/jinmenu.php on line 72
 * If I remove the javascript from the box, the error goes away.
 * What am I doing wrong? Also since I installed the plugin I removed the Google
   Analytics code from the header.php file.
 * Thanks!
    Greg McComish

The topic ‘Fatal Error with javascript code inserted’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/jin-menu.svg)
 * [JinMenu](https://wordpress.org/plugins/jin-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/jin-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/jin-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/jin-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/jin-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/jin-menu/reviews/)

 * 0 replies
 * 1 participant
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/fatal-error-with-javascript-code-inserted/)
 * Status: not resolved