Utility function to validate Google Analytics tracking ID