5

I have added my GA tracking code to a website which is hosted via a GitHub public repository and I am concerned that, using my account number, they could effectively "hack" my GA account.

Is this unfounded nonsense or is there some truth behind my paranoia?

Sammaye
  • 197
  • 1
  • 6

1 Answers1

5

The tracking code on its own is not a security risk. Remember, anyone can see this simply by viewing the HTML source of your website.

If you're putting your website code on Github because you think other people could use it, you shouldn't include your tracking code because you don't want their visitors to be logged to your account.

Tim Fountain
  • 4,504
  • 1
  • 21
  • 19