GA Fixes and CWV improvements
Some checks failed
ci/woodpecker/pr/ci Pipeline failed

This commit is contained in:
2026-02-01 00:19:02 -03:00
parent 45e9382645
commit 9bf06d8cb0
5 changed files with 13 additions and 13 deletions

View File

@@ -46,7 +46,7 @@ async function main() {
const critters = new Critters({
path: DIST,
preload: 'swap',
preload: 'default',
noscriptFallback: true,
pruneSource: false,
logLevel: 'warn',
@@ -57,7 +57,7 @@ async function main() {
const filePath = path.join(DIST, file);
let html = fs.readFileSync(filePath, 'utf8');
html = await critters.process(html);
html = postProcessSwapLinks(html);
// html = postProcessSwapLinks(html);
fs.writeFileSync(filePath, html, 'utf8');
console.log('✓ Critical CSS inlined → dist/' + file);
}

View File

@@ -12,7 +12,7 @@
</p>
<div class="cta-group">
<a
href="https://cal.mifi.ventures/the-mifi"
href="https://cal.mifi.ventures/the-mifi/30min?utm_source=website&utm_medium=cta&utm_campaign=schedule_call&utm_medium=hero_cta"
class="btn btn-primary"
target="_blank"
rel="noopener noreferrer"

View File

@@ -7,7 +7,7 @@
<h2 id="schedule-heading" class="section-title">Let's Talk</h2>
<p class="schedule-text">Ready to discuss your project?</p>
<a
href="https://cal.mifi.ventures/the-mifi"
href="https://cal.mifi.ventures/the-mifi/30min?utm_source=website&utm_medium=cta&utm_campaign=schedule_call&utm_medium=schedule_section_cta"
class="btn btn-primary"
target="_blank"
rel="noopener noreferrer"

View File

@@ -29,15 +29,7 @@
<svelte:head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-36F29PDKRT"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'G-36F29PDKRT');
</script>
<script defer src="/assets/js/ga-init.js"></script>
<title>{merged.title}</title>
<meta name="description" content={merged.description ?? ''} />

View File

@@ -0,0 +1,8 @@
window.dataLayer = window.dataLayer || [];
function gtag(){ window.dataLayer.push(arguments); }
gtag("js", new Date());
gtag("config", "G-36F29PDKRT", {
// optional, but often helpful:
anonymize_ip: true,
});