Skip to content

Commit 5c7d1da

Browse files
committed
Removed google analytics
1 parent 5029622 commit 5c7d1da

File tree

5 files changed

+5
-35
lines changed

5 files changed

+5
-35
lines changed

app/Console/Commands/RefreshSettings.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,11 @@ public function handle()
141141
$this->info('Renmamed SEATING_SEAT_PRICE_CURRENCY to MAIN_CURRENCY');
142142
}
143143

144+
if (Setting::has('GOOGLE_ANALYTICS_TRACKING_ID')) {
145+
Setting::forget('GOOGLE_ANALYTICS_TRACKING_ID');
146+
$this->info('Removed GOOGLE_ANALYTICS_TRACKING_ID');
147+
}
148+
144149
Setting::save();
145150

146151
// Add description to settings
@@ -150,7 +155,6 @@ public function handle()
150155
'MAIN_ENABLE_GRASROTANDELEN_WIDGET' => 'Set this to "0" (without quotes) to disable Grasrotandelen on the homepage. If it is set to "1" (without quotes) Grasrotandelen will be visible on the homepage.',
151156
'FACEBOOK_MESSENGER_APP_ID' => 'This is used for the messenger integration for users. Create an app on <a target="_blank" href="https://developers.facebook.com/">https://developers.facebook.com/</a> and paste its ID here. Example: 1234567890123456',
152157
'FACEBOOK_MESSENGER_PAGE_ID' => 'This is used for the messenger integration for users. This is the ID not the URL of the page. You will find it under "about" on the bottom on your page. Example: 1234567890123456',
153-
'GOOGLE_ANALYTICS_TRACKING_ID' => 'This is used for tracking traffic on your website. Example: UA-12345678-0',
154158
'GOOGLE_CALENDAR_API_KEY' => 'Please refer to <a target="_blank" href="https://portal.kilobyte.no/knowledgebase/7/Google-Calendar-Integration.html">this guide</a>.',
155159
'GOOGLE_CALENDAR_ID' => 'Please refer to <a target="_blank" href="https://portal.kilobyte.no/knowledgebase/7/Google-Calendar-Integration.html">this guide</a>.',
156160
'GOOGLE_CALENDAR_START_DATE' => 'This will be the date you want the calendar to start. Example: 1970-01-30',

database/seeders/SettingsTableSeeder.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public function run()
5050
Setting::set('LOGIN_ENABLED', true);
5151

5252
Setting::set('GOOGLE_MAPS_API_KEY', '');
53-
Setting::set('GOOGLE_ANALYTICS_TRACKING_ID', '');
5453
Setting::set('GOOGLE_CALENDAR_API_KEY', '');
5554
Setting::set('GOOGLE_CALENDAR_ID', '');
5655
Setting::set('GOOGLE_CALENDAR_START_DATE', '1970-01-30');

resources/views/vobilet-admin/layouts/main.blade.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -301,16 +301,5 @@
301301
});
302302
</script>
303303

304-
@if(Setting::get('GOOGLE_ANALYTICS_TRACKING_ID'))
305-
<script>
306-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
307-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
308-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
309-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
310-
ga('create', '{{ Setting::get('GOOGLE_ANALYTICS_TRACKING_ID') }}', 'auto');
311-
ga('send', 'pageview');
312-
</script>
313-
@endif
314-
315304
</body>
316305
</html>

resources/views/vobilet/layouts/auth.blade.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,6 @@
7777
}
7878
})});
7979
</script>
80-
81-
@if(Setting::get('GOOGLE_ANALYTICS_TRACKING_ID'))
82-
<script>
83-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
84-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
85-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
86-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
87-
ga('create', '{{ Setting::get('GOOGLE_ANALYTICS_TRACKING_ID') }}', 'auto');
88-
ga('send', 'pageview');
89-
</script>
90-
@endif
9180

9281
</body>
9382
</html>

resources/views/vobilet/layouts/main.blade.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -407,17 +407,6 @@ function notificationDismiss (url) {
407407
}
408408
</script>
409409

410-
@if(Setting::get('GOOGLE_ANALYTICS_TRACKING_ID'))
411-
<script>
412-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
413-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
414-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
415-
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
416-
ga('create', '{{ Setting::get('GOOGLE_ANALYTICS_TRACKING_ID') }}', 'auto');
417-
ga('send', 'pageview');
418-
</script>
419-
@endif
420-
421410
@if(Setting::get('FACEBOOK_MESSENGER_APP_ID') && Setting::get('FACEBOOK_MESSENGER_PAGE_ID'))
422411
<script>
423412
window.fbAsyncInit = function() {

0 commit comments

Comments
 (0)