Is it possible to use Google Analytics in internal Visualforce pages?

My VF page isn't exposed as a Force.com site.

2 Answers 2


According to a post on the Google Analytics Group the answer is a yes.

Internal pages aren't a problem at all.

All you do to track user interaction is send data to Google Analytics. Google Analytics does not need to send anything back, so it doesn't matter if the pages are internal or not.

In fact, the pages don't even have to exist. If you send a pageview to Google Analytics with a spelling mistake, Google will happily accept it.

This relevant question provides some details on the implementation.


I believe yes you can use. If you are able to access the GA JS files you can use GA. You can also create a VF component for easy implementation. I think you may have to use My Domain for a fully qualified domain name (I am not sure about it).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .