This is really helpful! I've been learning web dev for a while, and I'm currently building my first ever project using astro and svelte. It's been really hard to find astro tutorials, and you give me just what I need!
@StefanRows Жыл бұрын
Great to hear! Wishing you the best of luck on your journey!!
@danielribes54338 ай бұрын
Thanks Stefan. You saved my life with this great video and great explanation
@StefanRows8 ай бұрын
Cheers!
@martinraul1978 Жыл бұрын
For folks using the new starter template, the component should be in imported into layouts/Base.Astro
@SebFehr Жыл бұрын
To make this work, I also had to configure astro.config.mjs wtih: ``` import { defineConfig } from "astro/config"; import partytown from "@astrojs/partytown"; export default defineConfig({ integrations: [ partytown({ // Adds dataLayer.push as a forwarding-event. config: { forward: ["dataLayer.push"], }, }), ], }); ```
@DanielByronYT Жыл бұрын
Yeah it wasnt working for me either. But I found another blog post about this that led me to this code. This is a pretty big issue. This comment should be pinned or something.
@ElenaBG39 ай бұрын
Thanks. Did my own by following the guide
@buschfranco3 ай бұрын
Hello from Argentina. I need your help to solve my problem, please. Your tutorial was really helpful, but when the code went into production, I had a problem with 'CORS'. Do you know how to fix that? Thank you!
@lvekua Жыл бұрын
Thank you for the guide! I’m getting CORS error 😢 is there any chance you know how to handle it? Thank you again!
@orkunvemosi Жыл бұрын
Stefan, i really appreciate you making this video, however i have a question. how is it possible to create custom events?
@ricardosnotes11 ай бұрын
Thanks for the video, i tried everything to make google analytics work with the astro starlight theme but nothing worked, can you maybe give it a go?
@nicblo Жыл бұрын
Thanks for you video from Chile 🇨🇱
@SlothNiraj5 ай бұрын
Hey, can you tell me how to add adsense ads in astro site
@itanio Жыл бұрын
This was really helpful. Thanks! Subscribing for more.
@BG-xu8be Жыл бұрын
Do you really need an extra plugin for that? Couldn't you just add for the analytics?
@StefanRows Жыл бұрын
I don't know? Can you? I followed the recommended way according to the Astro.build documentation on this one.
@BG-xu8be Жыл бұрын
@@StefanRows Ok thanks, but I tried with an inline script-tag and it did work, so I was wondering where is the benefit of that..
@rafaelsanabria5936 Жыл бұрын
From the docs """ Partytown is a lazy-loaded library to help relocate resource intensive scripts into a web worker, and off of the main thread. If you’re using third-party scripts for things like analytics or ads, Partytown is a great way to make sure that they don’t slow down your site. """
@BG-xu8be Жыл бұрын
@@rafaelsanabria5936 Ah ok, now I understand, thank you. Just trying to make sense out of all this stuff as a beginner…