Benjamin Völkl 2022-10-10 14:49:02 +02:00
parent 1e3d36eb99
commit 1e7cb9c077
1 changed files with 0 additions and 37 deletions

View File

@ -1,37 +0,0 @@
@if(App::environment('production'))


@if (!empty(\Setting::get('facebook', '')))


<script>
!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window, document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init', '{{\Setting::get('facebook') }}');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none"
src="https://www.facebook.com/tr?id={{\Setting::get('facebook') }}&ev=PageView&noscript=1"
/></noscript>

@endif

@if (!empty(\Setting::get('analytics', '')))

<script async src="https://www.googletagmanager.com/gtag/js?id={{\Setting::get('analytics') }}"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', '{{\Setting::get('analytics') }}');
</script>
@endif

@endif