Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

Best Practices for Implementing Google Analytics Code in Version 2.x

default discord avatar
kouohhashilast year
1 1

I want to insert the Google Analytics code in version 2.x, what is the most recommended way to do this?

Is it best practice to copy and paste it into the head section?

  • Selected Answer
    discord user avatar
    zubricks
    last year

    Hey @kouohhashi you could take a look at our website repo for some pointers. We've implemented GA and it works as expected (if you're using NextJS on the frontend that is).

    1 reply
  • default discord avatar
    kouohhashilast year

    Thanks!

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.