factor out google analytics ids (LMS-2555)

 #3490 rebased onto the release candidate