Site logo

Archived topic

Google Onclick on bouton menu

2 replies · Started by Rejean on February 28, 2020

Viewing posts 1–3 of 3

Hello I am looking for how to insert the code here for The button in the menu on the phone number with the onclik function for google analytics

1- I create a hook element with this code:

* /
var captureOutboundLink = function (url) {
    ga ('send', 'event', 'appel_cc', 'tel_5148354131', url, {
      'transport': 'beacon',
      'hitCallback': function () {document.location = url;}
    });
}
</ Script>

2- in the menu for the phone number I don't see how I can insert this code:

This archived topic is closed to new replies.