Web 2.0, focusing on user involvement and cooperation, is vital for online marketing. To succeed in such a cutthroat industry, every online business must place a premium on earning and retaining clients' trust and loyalty in the digital realm. The study's objective is to ascertain whether or not electronic consumer loyalty and online trust are enhanced by social media marketing. The results of the poll, which included 596 individuals, showed that social media marketing tools had a significant effect on consumers' faith in and commitment to businesses through digital channels. The results of this study will hopefully add to what has been applied to social media marketing for online businesses.