In this chapter, you'll learn all about e-commerce marketing. Even before the pandemic, e-commerce was already trending; however, this period brought unprecedented growth to the digital and e-commerce sectors. The consecutive lockdowns forced consumers to look for all kinds of goods and services online, which caused the companies that weren't selling online to start doing so as their only option to keep their businesses going. When the market has such an abundance of suppliers, competition increases and marketing becomes of paramount importance as companies feel the need to distinguish themselves in the vast sea of competitors and better market their products and services online.
The go-to option for building online stores in Drupal is the Drupal Commerce framework. By adding an e-commerce platform on top of Drupal, content and products are seamlessly integrated, and the richest digital shopping experiences can be built. Fundamental functions (including orders, product details, cart management, promotions, and payment choices) are provided by Drupal Commerce. But the features available go way beyond these: in the Drupal Commerce ecosystem, dozens of modules are available to help build the perfect online store (the payment methods alone number more than one hundred!)
The most basic strategy available for e-commerce marketing (and one of the most powerful!) is promotional pricing. Companies temporarily lower the price of a product or service to attract prospects and consumers or to increase the sales of that product or service. Online consumers are perfectly attuned to this strategy; many only buy when they see a promotion going on, and delay their purchase until one starts.
In this chapter, we will cover the following topics:
Drupal Commerce has a powerful built-in engine to create all kinds of promotions for your online store. By default, you'll find the following options for offer types:
For each offer type, you need to set the related parameters. In addition, there's a special offer type, Combination offer, which, as the name implies, allows you to group multiple offer types in the same promotion, providing you with even more flexibility.
Let's create a promotion that will give customers a store-wide 5% discount when they subscribe to the brand's newsletter, but only for those customers with the unique coupon code to activate that promotion. The coupon will be sent in the welcome email the customer receives when they subscribe to your newsletter. This strategy has a twofold objective: one, obviously, is to encourage the online store visitors to subscribe to your newsletter, and the other is to offer them a small discount that can help convert new visitors into customers! Let's get started:
Drupal Commerce's promotion engine is very flexible and powerful. The number of offer types is constantly being expanded, either by being available in Commerce Core or as contributed modules.
Note
It's also possible to create a custom offer type by programming your own offer plugin. Check the Drupal Commerce developer documentation to discover how to accomplish this: https://docs.drupalcommerce.org/commerce2/developer-guide/promotions/create-an-offer-type.
You aren't limited to promoting or selling your products exclusively in your store. You can also make your products available on other channels, including Facebook, Instagram, and Google. One of the main reasons why this is a good option is that those channels are already visited by your target consumers – you just need to show them your products. In the following section, we'll learn how to create a product feed to make our products available through these channels.
Your product catalog is not limited to existing only in your store; it can also be distributed through other channels, thus allowing you to increase your marketing reach. In this chapter, you will learn how to automatically distribute your product catalog with three of the most important marketing channels nowadays: Facebook, Instagram, and Google.
For Google and Facebook, it's recommended that your products are identified with what is called a Google product category (how original!). Fortunately for us, there's also a contributed module to help us with that.
Let's see how to do it:
Now, whenever you create or update the store products and set the Google product category for that field, that information will be ready to use on the feeds you create for Google and Facebook.
As the name suggests, a product catalog is a collection of information on all the products you wish to market or sell on Facebook and Instagram. Facebook can automatically update the e-commerce catalog if you provide information about your products using either of the Open Graph or Schema.org standardized formats.
Note
For instructions on how to set up a product catalog on the Facebook side, read the following link: https://www.facebook.com/business/help/1275400645914358.
Let's add microdata tags to our product pages, so Facebook can do the same. The format that we will be using is OpenGraph. For this to work, you'll need to have the Facebook pixel installed (go back to Chapter 5, Generating Website Traffic, for more instructions), and we will once again be using the Metatag module for adding the respective tags.
<meta property="og:site_name" content="Josefinas" />
<meta property="og:url" content="http://josefinas.com/en/store/power-lunch-beige" />
<meta property="og:title" content="Power Lunch Beige" />
<meta property="og:description" content="We love to create and give a new life to simple things, making them extraordinary, so we created the Josefinas Power Lunch, a lunch bag that promotes lunches and conversations between women, making meals out much more beautiful!">
<meta property="og:image" content="http://example.com/sites/default/files/styles/large/public/product-images/power-lunck-beige-1200x814-1.png?itok=Kn893W3l" />
<meta property="product:availability" content="in stock" />
<meta property="product:condition" content="new" />
<meta property="product:retailer_item_id" content="257" />
<meta property="product:price:amount" content="285.000000" />
<meta property="google_product_category" content="3032" />
<meta property="product:price:currency" content="EUR" />
Now Facebook can automatically discover your catalog and keep it updated. This is very useful for creating Facebook dynamic ads or for putting your products on sale on Facebook or Instagram.
Next, you will learn how to accomplish the same objective, but this time with Google's offering.
Google's Merchant Center uses primary feeds to display your products on Google, so you need to create a Drupal Commerce products feed. To do so, we'll be creating a dynamic feed with views that follow Google's Product data specification https://support.google.com/google-ads/answer/7052112. The feed must have all the required fields from the specification. The data structure is usually specific for each Drupal Commerce project, so the samples displayed should be taken as an example only.
Let's look at the steps for creating a feed of Drupal Commerce products for Google Shopping:
The strategies you've learned here will assist you in bringing customers to your online store, but as you know, this isn't enough. Even if they like the products and their prices, they may abandon their order and your online store after adding some products to their cart.
Let's see how to get those customers back by implementing a cart abandonment recovery email strategy.
Brands spend a lot of money attracting visitors to their online stores, but most of these visitors leave without making a purchase. Abandonment cart rates vary by sector, but usually, they're around 70 to 80%! There are many reasons for adding a product to the cart and never completing the purchase, but the most common ones are as follows:
It's essential to differentiate cart abandonment and checkout abandonment. They happen in different stages of the customer journey, and both are relevant in assessing whether everything is going as expected. Of course, checkout abandonment is more important, and you should always keep an eye on which step of the purchasing process your customers leave at in order to fix this issue.
Cart abandonment must be faced as a fact of life for online retailers. However, this doesn't mean there's nothing you can do about it. There are many digital marketing techniques you can implement to recover these customers and encourage them to check out their cart and finish their purchases. One of the most effective ones is by implementing a cart abandonment recovery email strategy.
Let's look at the steps to implement a cart abandonment recovery email in Drupal Commerce:
In my experience, you can expect at least a 10% conversion rate with this type of email. In addition, you can combine this strategy with other remarketing strategies, further increasing the number of recovered customers.
Next, we'll look at how to connect Drupal Commerce with Google Analytics Enhanced Ecommerce.
You'll want to enable the measurement of user interactions with products on your e-commerce store across the user's shopping experience, including the views of product details when viewing a commerce product entity, the additions and removals of products from the shopping cart, the customer's checkout behavior, and their final purchases. We can do this using Google Analytics as follows:
And the Triggers section should look like this:
Note
For your convenience, since this step is very time-consuming, you can download an exported GTM container with all those tags and triggers already set, provided with the code for this book. For more information on how to import a GTM container, check this link: https://support.google.com/tagmanager/answer/6106997.
We've only covered topics that don't necessarily have to involve real-time human interaction. But we cannot forget the importance of human interaction when doing marketing. Not all customers want it, but many desire to ask you questions in real time about your offering when they are on your online store. They want to talk to a "real human." That human touch, on the other side of your store, can be the difference between making a sale or not!
Customers always expect the best support, and the best means fast; really, really fast! Nowadays, when customers are in the mood to purchase and have a query about a product, they're not going to wait for an email response or sit in a phone queue. They want their answer instantly. That's why live chat is an excellent addition to any online store.
As you'd expect, there are many solutions available. There is one that I consider to be the best: it's free, it has many features (some of which must be paid for), and it integrates perfectly with Drupal; it is tawk.to. You can sign up for free here: https://dashboard.tawk.to/signup.
The process to add an external live chat to Drupal is very similar to the one described here, no matter which solution you choose. Let's see how it's done:
When chat widgets started to appear on websites, customers didn't use them that much, but I see them being used more and more now. People have noticed that it is a speedy and practical way to clarify any issues they have. Also, on the brand side, it's a way to capture feedback in a more organic form.
In this chapter, you have learned the basics of e-commerce marketing, including how to create promotions and coupons with Drupal Commerce and how to send automatic email reminders to your customers when they haven't finished their orders.
We have also been through the steps of creating product feeds for Google, Facebook, and Instagram using different approaches. The integration between Google Analytics and Drupal Commerce is vastly improved by adding support for Enhanced Ecommerce Reports.
Finally, we saw how to quickly add a live chat tool to our online store. If nothing else, you've learned that being closer to our customers and making them feel safe and supported throughout the purchasing process is mandatory for the success of any online store these days.
In the next chapter, we'll focus on how Drupal can assist you when it comes to running and managing your team, as well as how it can help you to complete your daily digital marketing activities.