Skip to content

Commit

Permalink
Merge pull request #28 from laravelcompany/development
Browse files Browse the repository at this point in the history
Removed google tracking, added my own
  • Loading branch information
izdrail authored Dec 15, 2024
2 parents 575fac8 + b262fe7 commit 6885fa8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 62 deletions.
2 changes: 1 addition & 1 deletion backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _replace_links_and_emails(self, content: str, template_name: str) -> str:
# Replace <meta name="description"> with a template description
content = re.sub(
r'<meta\s+name="description"\s+content=".*?"\s*/>',
f'<meta name="description" content="{template_name} description." />',
f'<meta name="description" content="{template_name} free email template." />',
content
)

Expand Down
1 change: 1 addition & 0 deletions backend/supervisord.pid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
61 changes: 1 addition & 60 deletions frontend/src/components/Footer.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,66 +4,6 @@ const currentYear = new Date().getFullYear()
let footer: any = []
---

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-V4RXY7MZHW"></script>
<script>
window.dataLayer = window.dataLayer || []

function gtag() {
dataLayer.push(arguments)
}

gtag('js', new Date())

gtag('config', 'G-V4RXY7MZHW')
</script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-M680WV2J7G"></script>
<script>
window.dataLayer = window.dataLayer || []

function gtag() {
dataLayer.push(arguments)
}

gtag('js', new Date())

gtag('config', 'G-M680WV2J7G')
</script>
<!-- Hotjar Tracking Code for https://laravelmail.com -->
<script>
;(function (h, o, t, j, a, r) {
h.hj =
h.hj ||
function () {
;(h.hj.q = h.hj.q || []).push(arguments)
}
h._hjSettings = { hjid: 5106367, hjsv: 6 }
a = o.getElementsByTagName('head')[0]
r = o.createElement('script')
r.async = 1
r.src = t + h._hjSettings.hjid + j + h._hjSettings.hjsv
a.appendChild(r)
})(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=')
</script>
<!-- Google Tag Manager -->
<script>
;(function (w, d, s, l, i) {
w[l] = w[l] || []
w[l].push({
'gtm.start': new Date().getTime(),
event: 'gtm.js',
})
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != 'dataLayer' ? '&l=' + l : ''
j.async = true
j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl
f.parentNode.insertBefore(j, f)
})(window, document, 'script', 'dataLayer', 'GTM-N3N6ZKFN')
</script>
<!-- End Google Tag Manager -->

<footer style="margin-top: 2vh" class="container mx-auto mt-10 pb-10">
<div class="mb-4 flex flex-wrap gap-x-6 gap-y-1">
<a class="font-serif hover:underline hover:underline-offset-2" href="/terms"> Terms</a>
Expand All @@ -89,5 +29,6 @@ let footer: any = []
href="https://marmureanu.ro">Andrei</a
>. All rights reserved.
</p>
<script defer src="https://analytics.izdrail.com/script.js" data-website-id="cf5caa0b-8345-4f76-885f-b6e5b4af5ba3"></script>
</div>
</footer>
2 changes: 1 addition & 1 deletion frontend/src/layouts/DefaultLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,6 @@ const {
}
}
</style>

<script defer src="https://analytics.izdrail.com/script.js" data-website-id="cf5caa0b-8345-4f76-885f-b6e5b4af5ba3"></script>
</body>
</html>
1 change: 1 addition & 0 deletions frontend/src/layouts/MarkdownLayout.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ const { frontmatter } = Astro.props
<slot />
</div>
</div>
<script defer src="https://analytics.izdrail.com/script.js" data-website-id="cf5caa0b-8345-4f76-885f-b6e5b4af5ba3"></script>
</DefaultLayout>

0 comments on commit 6885fa8

Please sign in to comment.