Calculadora COMEX Perú

Home / Digital business and AI / Module 1

1.1 E-commerce and digital marketing

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.

Module 1: Digital business fundamentals · Reviewed on 12/10/2026 · Español

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.

Key ideas

ModelWho sells to whomExample
B2CBusiness to consumerA clothing store that sells on its website
B2BBusiness to businessA packaging supplier that sells to restaurants through an online catalog
C2CPerson to personSomeone who sells their used bicycle on a marketplace
D2CManufacturer to consumer, with no middlemenA coffee producer that sells its brand from its own online store

Worked example

Does the alpaca scarf campaign make or lose money?
  1. A fictitious store, Tejidos Andinos, spends S/ 1,500 on ads. The cost per click is S/ 0.25. Visits: 1,500 ÷ 0.25 = 6,000. All amounts in this example exclude IGV.
  2. The conversion rate is 2%. Orders: 6,000 × 2% = 120.
  3. The average ticket (what each customer spends per order) is S/ 95. Sales: 120 × S/ 95 = S/ 11,400.
  4. After paying for the product, the packaging and the shipping you cover, a contribution margin of 40% is left: S/ 95 × 40% = S/ 38 per order. Total: 120 × S/ 38 = S/ 4,560.
  5. The CAC is S/ 1,500 ÷ 120 = S/ 12.50 per order. The campaign's profit is S/ 4,560 − S/ 1,500 = S/ 3,060.
  6. Break-even point: S/ 1,500 ÷ S/ 38 = 39.5, that is, 40 orders. Out of 6,000 visits, the minimum conversion is 40 ÷ 6,000 = 0.67%.
  7. Pessimistic scenario: if conversion drops to 0.5%, there are 30 orders. The CAC rises to S/ 50, higher than the S/ 38 margin, and the campaign loses S/ 1,500 − S/ 1,140 = S/ 360.

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.

Real cases

Eight out of ten Peruvians already use the internet

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

88% of global e-commerce is between businesses

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

Common mistakes

Practise with the calculators, the COMEX Simulator and the review questions on the main page.

Open this topic in the calculator →
Next topic: Models: your own store, marketplaces and dropshipping →