Help forum

What do you use for adding google tag in your project?

  • unicodes

    1 year ago

    I'm looking to add google tag for analytics or other services like facebook pixels.
    Read here that there is Pixel and someone tried to add the script in the assets but doesn't work.

    What do you use?
  • Lucas G

    1 year ago

    I’ve seen people mostly use header settings for it (in the page settings)
  • I use a component
  • unicodes

    1 year ago

    What do you think Lucas, would work adding the scrip in this way and in the menu component?
    1346168885870854196-Screenshot_2025-03-03_at_19.13.39.png
  • Lucas G

    1 year ago

    It would, yes
    🙏1
  • Lucas G

    1 year ago

    It does work to add it in the header though
  • The platforms recommend adding it there so it's called immediately but it is honestly fine to have it in the body (in a script tag as you're showing there)
  • It's actually better from a 'performance' point as assets in header can block render, etc
    ❤️1
  • unicodes

    1 year ago

    That's nice! Thank you Lucas!
  • Tod

    1 year ago

    Great energy @unicodes! Your continuous contribution to the toddle Community just made you advance to Community Level 18!