Remove phone number click tracking
This commit is contained in:
@@ -143,31 +143,6 @@ page {
|
||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','{$plugin.tx_eptheme.settings.googleTagManagerId}');</script>
|
||||
<!-- End Google Tag Manager -->
|
||||
<script type="text/javascript">
|
||||
/* <![CDATA[ */
|
||||
goog_snippet_vars = function() {
|
||||
var w = window;
|
||||
w.google_conversion_id = 1072535457;
|
||||
w.google_conversion_label = "KiaaCObA9XEQoa-2_wM";
|
||||
w.google_remarketing_only = false;
|
||||
}
|
||||
// DO NOT CHANGE THE CODE BELOW.
|
||||
goog_report_conversion = function(url) {
|
||||
goog_snippet_vars();
|
||||
window.google_conversion_format = "3";
|
||||
var opt = new Object();
|
||||
opt.onload_callback = function() {
|
||||
if (typeof(url) != 'undefined') {
|
||||
window.location = url;
|
||||
}
|
||||
}
|
||||
var conv_handler = window['google_trackConversion'];
|
||||
if (typeof(conv_handler) == 'function') {
|
||||
conv_handler(opt);
|
||||
}
|
||||
}
|
||||
/* ]]> */
|
||||
</script>
|
||||
)
|
||||
headerData.999.stdWrap.if.isTrue = {$plugin.tx_eptheme.settings.googleTagManagerId}
|
||||
|
||||
|
||||
@@ -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