Remove phone number click tracking
This commit is contained in:
@@ -250,23 +250,6 @@ new Vue({
|
||||
});
|
||||
|
||||
},
|
||||
initPhoneLinks () {
|
||||
const $phoneLinks = $('a[href^="tel"]');
|
||||
const conversionClickHandler = function () {
|
||||
goog_report_conversion($(this).attr('href'));
|
||||
return false;
|
||||
};
|
||||
const nullClickHandler = () => {
|
||||
return false;
|
||||
};
|
||||
if (this.mobileMode) {
|
||||
$phoneLinks.unbind('click', nullClickHandler);
|
||||
$phoneLinks.bind('click', conversionClickHandler);
|
||||
} else {
|
||||
$phoneLinks.bind('click', nullClickHandler);
|
||||
$phoneLinks.unbind('click', conversionClickHandler);
|
||||
}
|
||||
},
|
||||
initDropdownMenuBehavior () {
|
||||
const $dropdownLinks = $('.navbar-main').find('a.dropdown-toggle');
|
||||
if (this.mobileMode) {
|
||||
@@ -319,7 +302,6 @@ new Vue({
|
||||
$window.on('resize', () => {
|
||||
this.setMobileMode();
|
||||
this.initCarousels();
|
||||
this.initPhoneLinks();
|
||||
this.initFilterpanel();
|
||||
this.initDropdownMenuBehavior();
|
||||
let newBackgroundImageMode = this.getBackgroundImageMode();
|
||||
@@ -412,7 +394,6 @@ new Vue({
|
||||
this.initCarousels();
|
||||
this.initHeaderSlider();
|
||||
this.initContentsliders();
|
||||
this.initPhoneLinks();
|
||||
this.initTooltips();
|
||||
this.initDropdownMenuBehavior();
|
||||
this.initPartnerIdSelect();
|
||||
|
||||
Reference in New Issue
Block a user