Keep AdSense rendering limited to anonymous visitors.

Show guest-only ad units on public pages and skip the AdSense script entirely for signed-in users.
This commit is contained in:
test
2026-09-20 14:49:34 +02:00
parent 37100ced3f
commit 17df4d0ad7
8 changed files with 135 additions and 8 deletions
+13 -1
View File
@@ -100,8 +100,20 @@
@include('web.home.sections.news', ['items' => $props['news'] ?? []])
@include('web.home.sections.cta', ['isLoggedIn' => true])
@else
@foreach ($guestArtworkSections as $section)
@foreach ($guestArtworkSections as $index => $section)
@include('web.home.sections.artwork-section', $section)
@if($index === 0)
{{-- Skinbase Dashboard Horizontal — guests only --}}
<div class="mt-14 flex justify-center px-4 sm:px-6 lg:px-8">
<ins class="adsbygoogle w-full max-w-3xl"
style="display:block;text-align:center"
data-ad-client="ca-pub-6457864535683080"
data-ad-slot="8766048277"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>(adsbygoogle = window.adsbygoogle || []).push({});</script>
</div>
@endif
@endforeach
@include('web.home.sections.collections', ['collections' => $props['collections_trending'] ?: ($props['collections_featured'] ?: ($props['collections_editorial'] ?? []))])
@include('web.home.sections.world-spotlight', ['world' => $props['world_spotlight'] ?? null])