{{-- Google tag (GA4) for propertylabglobal.com and the ad landing pages' hosts. Rendered ONLY when: • the request is on a host in services.google_tag.hosts. Every dev workspace also serves this app (with APP_ENV=production, so the environment cannot tell them apart), and • the path is not in services.google_tag.skip_paths: the /manage backend (internal traffic, and URLs carrying staff searches on customer data) and private links whose token or signature IS the credential. GA stores the full URL of every page it sees. Inertia navigations need no code: the data stream's enhanced measurement sends a page_view on every history change. Sending one from app.js as well would count each page twice. resources/js/utils/googleTag.js turns a visit into /manage into a full page load, so the tag does not follow an admin there. The key events are sent server-side, see App\Services\Marketing\GoogleAnalyticsConversions. --}} @php($googleTagId = config('services.google_tag.id')) @if ($googleTagId && in_array(request()->getHost(), config('services.google_tag.hosts'), true) && ! request()->is(...config('services.google_tag.skip_paths'))) @endif