Conductive hydrogels with stretchable, flexible and wearable properties have made significant contributions in the area of modern electronics. The polyacrylamide/alginate hydrogels are one of the potential emerging materials for application in a diverse range of fields because of their high stretch and toughness. However, most researchers focus on the investigation of their mechanical and swelling behaviors, and the adhesion and effects of the ionic liquids on the conductivities of polyacrylamide/alginate hydrogels are much less explored. Herein, methacrylated lysine and different alkyl chain substituted imidazole-based monomers (IMCx, x = 2, 4, 6 and 8) were introduced to prepare a series of novel pAMAL-IMCx-Ca hydrogels. We systematically investigated their macroscopic and microscopic properties through tensile tests, electrochemical impedance spectra and scanning electron microscopy, as well as Fourier transform infrared spectroscopy, and demonstrated that an alkyl chain length of the IMCx plays an important role in the designing of hydrogel strain sensors. The experiment result shows that the hexyl chains of IMC6 can effectively entangle with LysMA through hydrophobic and electrostatic interactions, which significantly enhance the mechanical strength of the hydrogels. Furthermore, the different strain rates and the durability of the pAMAL-IMC6-Ca hydrogel were investigated and the relative resistance responses remain almost the same in both conditions, making it a potential candidate for wearable strain sensors.