Archived topic
Google Onclick on bouton menu
2 replies · Started by Rejean on February 28, 2020
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:
Hi there,
Just to clarify, you want the number inside the mobile header?
https://www.screencast.com/t/bELN0WBIn
It doesn't look like you have enough room in there.
Let me know :)