diff --git a/content/includes/analytics.blade.php b/content/includes/analytics.blade.php new file mode 100644 index 0000000..b2cde9a --- /dev/null +++ b/content/includes/analytics.blade.php @@ -0,0 +1,87 @@ +@if(App::environment('production')) + @if(isset($_COOKIE["cookies-consent"]) && $_COOKIE["cookies-consent"]) + @if (!empty(config('settings.facebook'))) + + + @endif + + + + @if (!empty(config('settings.hotjar'))) + + @endif + + + + @if (!empty(config('settings.analytics'))) + + + @endif + + @if (!empty(config('settings.intercom')) && !empty(config('settings.intercom_key'))) + @if(Auth::check()) + @php ($hash_hmac = hash_hmac('sha256', Auth::user()->id, config('settings.intercom_key'))) + + @elseif(isset($invitedUser) && $invitedUser->invite != null) + @php ($hash_hmac = hash_hmac('sha256', $invitedUser->id, config('settings.intercom_key'))) + + @else + + @endif + + @endif + @endif +@endif \ No newline at end of file diff --git a/content/includes/meta.blade.php b/content/includes/meta.blade.php index fbd057e..1228f51 100644 --- a/content/includes/meta.blade.php +++ b/content/includes/meta.blade.php @@ -2,45 +2,34 @@