Samsung and Android: you might try the Health Sync app or a similar 3rd party app to link to Google Fit.
Samsung and iOS: search online for the growing list of devices compatible with Apple Health first and if it's not compatible, search for a 3rd party app.