Digital marketing is all about connecting people and brands online, whereas E-commerce is all about buying and selling products or other online service using the internet.
Digital marketing is the component of marketing that uses the Internet and online based digital technologies such as desktop computers, mobile phones and other digital media and platforms to promote products and services.
Digital marketing uses social media, display advertising, email, search engines, and other online channels to attract and engage customers, encourage them to make purchases, and build customer loyalty.
E-commerce refers to the trading of goods and services over the internet. E-commerce uses online platforms to buy and sell products and services. E-commerce business includes designing an online store, crafting product listings, conducting market research, fulfilling orders, and analyzing store performance.