Home / Digital business and AI / Module 1
E-commerce is selling online; digital marketing is getting people to find you, buy from you and come back. You measure them with the funnel, the conversion rate and the cost of acquiring each customer.
Goal: Tell apart the B2C, B2B, C2C and D2C models and calculate a campaign's visits, orders, CAC and profit to know whether it makes or loses money.
E-commerce is buying and selling products or services online. The order is placed online. Payment and delivery may or may not happen online: a customer can reserve on your website and pay cash on delivery. Depending on who sells to whom, there are four models: B2C (business to consumer), B2B (business to business), C2C (between individuals) and D2C (the manufacturer sells directly to the consumer, with no middlemen). Your business can combine several.
Digital marketing is the set of actions you use so people find you, prefer you and buy from you again, through channels such as search engines, social media, email and messaging. It is organized into three types of media. You control owned media: your website, your email list, your WhatsApp Business. Paid media are ads. Earned media are what others say about you: reviews, recommendations and mentions.
Everything is measured with a three-stage funnel: attract, convert and retain. First you get visits. Then you get a share of those visitors to buy: that share is the conversion rate, which you get by dividing orders by visits. Then you get them to come back. Two figures tell you whether the business is healthy. The customer acquisition cost (CAC) is what you spend on advertising and sales to get one new order. The contribution margin is what is left from each sale after paying for the product, packaging and shipping. If the CAC is higher than that margin, you lose money on each new sale.
Selling online is not just having a nice-looking page. A buyer weighs trust, the total price with shipping, payment methods and delivery time. If one of them fails, they abandon the cart. So offer more than one payment method, show the shipping cost before the last step and reply fast on the channel your customers already use. Also, do not depend on a single social network: the algorithm changes and an account can be suspended. Move your customers toward your own contact base.
In this area we go step by step. In this module you choose your business model, use AI as support, review the legal and tax basics and build your plan. Then you set up the store, attract customers, automate with AI and grow into other channels and countries. Cross-border e-commerce and its customs procedures are covered in depth in the Imports, Exports and Customs areas.
| Model | Who sells to whom | Example |
|---|---|---|
| B2C | Business to consumer | A clothing store that sells on its website |
| B2B | Business to business | A packaging supplier that sells to restaurants through an online catalog |
| C2C | Person to person | Someone who sells their used bicycle on a marketplace |
| D2C | Manufacturer to consumer, with no middlemen | A coffee producer that sells its brand from its own online store |
Result: With 2% conversion the campaign earns S/ 3,060, but with 0.5% it loses S/ 360. Before raising your spending, measure your real conversion and calculate your break-even point.
2025
In its technical report for the second quarter of 2025 (preliminary figures), the INEI (National Institute of Statistics and Informatics) reported that 80.2% of Peru's population aged 6 and over used the internet. This means almost all your potential customers are online, although not all of them buy that way. It also means part of the population is still offline.
Sell where your customer is and do not assume everyone uses the internet: combine your store with WhatsApp and personal service.
Source: INEI – Las Tecnologías de Información y Comunicación en los Hogares, II trimestre 2025
29/03/2019
UNCTAD (the UN agency for trade and development) estimated that global e-commerce sales reached about US$ 29 trillion in 2017. According to that press release, 88% were sales between businesses (B2B) and the rest were sales to consumers (B2C). The figure is old, but it shows that e-commerce is not just a store for the public.
If you sell to other businesses, such as restaurants, schools or stores, your online market may be bigger than the consumer market.
Source: UNCTAD – Global e-Commerce sales surged to $29 trillion
Practise with the calculators, the COMEX Simulator and the review questions on the main page.
Open this topic in the calculator →