OneConversorTemplate/OnlyOneAccessTemplate/Views/Shared/_Layout.cshtml
Ricardo Carneiro 6d11759ad1
All checks were successful
Deploy ASP.NET MVC to OCI / build-and-deploy (push) Successful in 11m1s
fix: disable analytics and tag manager
2025-06-03 22:44:32 -03:00

52 lines
1.7 KiB
Plaintext

<!DOCTYPE html>
<html lang="@ViewBag.Language" prefix="og: http://ogp.me/ns#" dir="@ViewBag.Direction">
<head>
@await Html.PartialAsync("_Head")
<!-- Page specific head content -->
@await RenderSectionAsync("Head", required: false)
</head>
<body class="@ViewBag.BodyClass">
<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe src="https://www.googletagmanager.com/ns.html?id=@ViewBag.GTMId"
height="0" width="0" style="display:none;visibility:hidden"></iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
@await Html.PartialAsync("_Header")
<main role="main" id="main-content">
@RenderBody()
</main>
@await Html.PartialAsync("_Footer")
<!-- Schema.org structured data --
<script type="application/ld+json">
@Html.Raw(ViewBag.StructuredData ?? "{}")
</script>
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"
integrity="sha384-C6RzsynM9kWDrMNeT87bh95OGNyZPhcTNXj1NW7RuBCsyN/o0jlpcV8Qyq46cDfL"
crossorigin="anonymous"></script>
<!-- AOS Animation JS -->
<script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
<!-- Custom JS -->
@if (!string.IsNullOrEmpty(ViewBag.GTMId?.ToString()))
{
<script src="~/js/conversion.js" asp-append-version="true"></script>
<script src="~/js/analytics.js" asp-append-version="true"></script>
}
@await RenderSectionAsync("Scripts", required: false)
<!-- Conversion tracking -->
@if (!string.IsNullOrEmpty(ViewBag.ConversionPixel as string))
{
<script>@Html.Raw(ViewBag.ConversionPixel)</script>
}
</body>
</html>