Magnetic alloys, mainly the ones made of Fe, Ni or Co, have great technological importance, being used in many parts of our daily life, such as in magnetic recording devices. The electrodeposition of those alloys, which enables a greater control over the process, presents a curious phenomenon: the film has a greater amount of the less noble metal than the bath, something not expected thermodynamically. This phenomenon is called anomalous codeposition and it has been widely studied and although many mechanisms are available none is unanimous amongst the scientific community. Additives have been used to various extents in this baths but outside of controlling the composition of the film little is known. This thesis presents studies attempting to comprehend the anomalous codeposition mechanism of CoNi alloy and to understand the influence of glycine, the additive chosen, on the phenomenon. Many analytical techniques, coupled with electrochemical ones, have been used, such as quartz crystal electrochemical microbalance, external reflection FTIR spectroscopy and stress measurements during the film growth. The presence of glycine in the bath alters the film composition by increasing the quantity of the least noble metal, cobalt. The analysis through gravimetry suggests that glycine keeps the pH values at the surface by acting as a buffer and at the same time it forms complexes with the metallic ions. The different values of complexation constants with different metals explains its role in the film composition. Glycine changes the nickel reduction mechanism to one similar to that of cobalt. Besides that, its presence indicates that oxidation phenomena are happening at the surface of nickel films. The additive shows no signs of adsorption on the electrode, but stress measurements indicates that perhaps an initial adsorption on gold may happen. There are evidences that hydrogen adsorption may be happening in the electrode's surface which, coupled with the high values of heat of adsorption, suggests that the anomalous codeposition phenomenon may be linked to the effect of this species on different metals.