Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Rohit Kumar

    (@aniketan)

    in javascript box you have to write
    window.open(“tel:04X4 4XX 30X”);

    Thread Starter unitedinnovation

    (@unitedinnovation)

    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

    (@aniketan)

    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

    (@unitedinnovation)

    Nah it still doesn’t work. Is there a way I can email you privately with my links on here?

    Plugin Author Rohit Kumar

    (@aniketan)

    ok
    rohitchowdhary75[at]gmail[dot]com

    you cam mail me here replace [at] with @
    [dot] with .

    Plugin Author Rohit Kumar

    (@aniketan)

    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
    https://demo.buffernow.com/

    please reply if it is fixed

    Thanks

    Thread Starter unitedinnovation

    (@unitedinnovation)

    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.