Title: Google Analytics tracking code with Java onclick
Last modified: September 1, 2016

---

# Google Analytics tracking code with Java onclick

 *  Resolved [unitedinnovation](https://wordpress.org/support/users/unitedinnovation/)
 * (@unitedinnovation)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/google-analytics-tracking-code-with-java-onclick/)
 * Hi,
 * I am interested in your plugin as I am putting the phone number of my business
   in the menu as a clickable item for smart phones although I cant seem to make
   it work.
 * My Standard html code is: [Click HERE to Call: 04X4 4XX 30X](https://wordpress.org/support/topic/google-analytics-tracking-code-with-java-onclick/04X44XX30X?output_format=md)
 * Above I have replace some numbers with X for privacy reasons. I am running the
   Avada theme.
 * I have turned on non conflict mode etc.. but I am a bit lost as what to do next.
   Thanks in advance for the help
 * [https://wordpress.org/plugins/jin-menu/](https://wordpress.org/plugins/jin-menu/)

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

 *  Plugin Author [Rohit Kumar](https://wordpress.org/support/users/aniketan/)
 * (@aniketan)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/google-analytics-tracking-code-with-java-onclick/#post-7580289)
 * in javascript box you have to write
    window.open(“tel:04X4 4XX 30X”);
 *  Thread Starter [unitedinnovation](https://wordpress.org/support/users/unitedinnovation/)
 * (@unitedinnovation)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/google-analytics-tracking-code-with-java-onclick/#post-7580292)
 * ahh the code didn’t past properly sorry..
 * This is the html I am using and I need all the event tags in the onclick
 * `<a href="tel:04X4 4XX 30X" onclick="ga(‘send’, ‘event’, ‘call’,‘click’, ‘phone
   call’);">Click to Call: 04X4 4XX 30X</a>`
 *  Plugin Author [Rohit Kumar](https://wordpress.org/support/users/aniketan/)
 * (@aniketan)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/google-analytics-tracking-code-with-java-onclick/#post-7580295)
 * ok
    then maybe this will help you . use this in javascript box
 * ga(‘send’, ‘event’, ‘call’,‘click’, ‘phone call’);
    window.open(“tel:04X4 4XX
   30X”);
 *  Thread Starter [unitedinnovation](https://wordpress.org/support/users/unitedinnovation/)
 * (@unitedinnovation)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/google-analytics-tracking-code-with-java-onclick/#post-7580296)
 * Nah it still doesn’t work. Is there a way I can email you privately with my links
   on here?
 *  Plugin Author [Rohit Kumar](https://wordpress.org/support/users/aniketan/)
 * (@aniketan)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/google-analytics-tracking-code-with-java-onclick/#post-7580297)
 * ok
    rohitchowdhary75[at]gmail[dot]com
 * you cam mail me here replace [at] with @
    [dot] with .
 *  Plugin Author [Rohit Kumar](https://wordpress.org/support/users/aniketan/)
 * (@aniketan)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/google-analytics-tracking-code-with-java-onclick/#post-7580303)
 * I just figure out
    the issue may be with text you place in menu
 * use **Click to Call** instead of
    **Click to Call: 04X4 4XX 30X**
 * text include mutiple spaces I will fix it in next version of jin menu
 * here is demo I just check
    [http://demo.buffernow.com/](http://demo.buffernow.com/)
 * please reply if it is fixed
 * Thanks
 *  Thread Starter [unitedinnovation](https://wordpress.org/support/users/unitedinnovation/)
 * (@unitedinnovation)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/google-analytics-tracking-code-with-java-onclick/#post-7580348)
 * All Fixed!
 * I can see why people get confused with your plugin. It seems some java knowledge
   is needed.
 * For all those who want to add click to call event tracking for google analytics
   in wordpress navigation menu, this is the code added to Jin Menus No Conflict
   Mode box.
    — ga(‘send’, ‘event’, ‘call’, ‘click’,’phone call’); window.open(“
   tel:0474 123 123”); —
 * Just swap out the phone number for your own.
 * By the way, Rohit the developer of this plugin was super helpful and helped me
   with his plugin a lot. If you cant get it working, before you give it 1 Star 
   ask him to help and he will.

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

The topic ‘Google Analytics tracking code with Java onclick’ 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/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [event](https://wordpress.org/support/topic-tag/event/)
 * [java](https://wordpress.org/support/topic-tag/java/)
 * [navigation](https://wordpress.org/support/topic-tag/navigation/)
 * [onclick](https://wordpress.org/support/topic-tag/onclick/)

 * 7 replies
 * 2 participants
 * Last reply from: [unitedinnovation](https://wordpress.org/support/users/unitedinnovation/)
 * Last activity: [9 years, 8 months ago](https://wordpress.org/support/topic/google-analytics-tracking-code-with-java-onclick/#post-7580348)
 * Status: resolved