A golf ball comprising an electrical component is disclosed herein. The electrical component comprises an integrated circuit having a gyroscope, a magnetometer, and a BLUETOOTH low energy (BTLE) radio, and at least one battery. A body is composed of an epoxy material, and the body encompasses the electrical component.