From b80e3a4d9bc0afcf114948148284960d663c4f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bjo=CC=88rn=20Fromme?= Date: Mon, 19 Nov 2018 12:23:46 +0100 Subject: [PATCH] Remove phone number click tracking --- .../TypoScript/Page/Main.typoscript | 25 ------------------- .../Resources/Private/Assets/js/_app.js | 19 -------------- 2 files changed, 44 deletions(-) diff --git a/web/typo3conf/ext/ep_theme/Configuration/TypoScript/Page/Main.typoscript b/web/typo3conf/ext/ep_theme/Configuration/TypoScript/Page/Main.typoscript index 29bd019c..3b6e9847 100644 --- a/web/typo3conf/ext/ep_theme/Configuration/TypoScript/Page/Main.typoscript +++ b/web/typo3conf/ext/ep_theme/Configuration/TypoScript/Page/Main.typoscript @@ -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}'); - ) headerData.999.stdWrap.if.isTrue = {$plugin.tx_eptheme.settings.googleTagManagerId} diff --git a/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/_app.js b/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/_app.js index d356bea4..a1cb7472 100644 --- a/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/_app.js +++ b/web/typo3conf/ext/ep_theme/Resources/Private/Assets/js/_app.js @@ -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();