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: