Magnetic activity of stars manifests itself in the form of dark spots on the stellar surface. This in turn will cause variations of a few percent in the star light curve as it rotates. When an orbiting planet eclipses its host a star, it may cross in front of one of these spots. In this case, a “bump” will be detected in the transit lightcurve. By fitting these spot signatures with a model, it is possible to determine the spots physical properties such as size, temperature, location, magnetic field, and lifetime. Moreover, the monitoring of the spots longitude provides estimates of the stellar rotation and differential rotation. For long time series of transits during multiple years, magnetic cycles can also be determined. This model has been applied successfully to CoRoT-2, CoRoT-4, CoRot-5, CoRoT-6, CoRoT-8, CoRoT-18, Kepler-17, and Kepler-63.