code: func Collect(staticConfiguration *static.Configuration) error {
  	anonConfig, err := anonymize.Do(staticConfiguration, false)
  	if err != nil {
  		return err
  	}
  
  	log.Infof("Anonymous stats sent to %s: %s", collectorURL, anonConfig)
  
  	hashConf, err := hashstructure.Hash(staticConfiguration, nil)
  	if err != nil {
  		return err
  	}
  
  	data := &data{
  		Version:       version.Version,
  		Codename:      version.Codename,
  		BuildDate:     version.BuildDate,
  		Hash:          strconv.FormatUint(hashConf, 10),
  		Configuration: base64.StdEncoding.EncodeToString([]byte(anonConfig)),
  	}
  
  	buf := new(bytes.Buffer)
  	err = json.NewEncoder(buf).Encode(data)
  	if err != nil {
  		return err
  	}
  
  	_, err = makeHTTPClient().Post(collectorURL, "application/json; charset=utf-8", buf)
  	return err
  }
docs: // Collect anonymous data.