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

  • uunicode-1346165213879074826

    unicodes

    3 months 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?
  • lucasg-1346168513521520730

    Lucas G

    3 months ago

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

    unicodes

    3 months 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
  • lucasg-1346169005085556806

    Lucas G

    3 months ago

    It would, yes
    🙏1
  • lucasg-1346169424717156352

    Lucas G

    3 months 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
  • uunicode-1346177240525705257

    unicodes

    3 months ago

    That's nice! Thank you Lucas!
  • Tod-1346177242308546570

    Tod

    3 months ago

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