[SOLVED] How/Where to add Google Analytics to a PlayCanvas game?

My friend, you’re a god! After that I was able to add the following to enhance data collection:

ga('send', {
  hitType: 'event',
  eventCategory: 'WebAR',   //Type of application
  eventAction: 'THC08',  //Floorplan
  eventLabel: '1.8.4.2'   //Version
});
ga(function(tracker) {
  var clientId = tracker.get('clientId');   //Very important!!!
});

THANK YOU SO MUCH!