Neil Patel

I hope you enjoy reading this blog post. If you want my team to just do your marketing for you, click here.

An Introduction to Analytics for Ecommerce Websites

The online marketing space is in constant shift as new technologies, services, and marketing tactics gain popularity and become the new standard. Online store owners are one of the many different segments affected by these constant evolutions. In order for these business owners to survive and thrive, they need to be able to make better decisions faster. This is where web analytics comes into play.

In this article, I will cover the major aspects of web analytics as they apply to the e-commerce space, and I’ll also provide a number of tips and important takeaways for online store owners of every shape and size.

Why Should You Bother with Analytics?

Before I dive into setting up the necessary “tools of the trade,” I think it’s important to take a moment and mention why I believe it is critical that all serious online store owners master the basics of e-commerce web analytics.

Understand What Is Working

As a small-to-medium online store owner, your resources are finite, which means that time and burn rate are critical factors to success. Without knowing which marketing activities are working, you will be wasting both time and money. Another symptom of this lack of information is that you will be missing out on profit from the channels that are working, because instead of doubling down on these channels, your budget will be spread across both profitable and unprofitable channels.

Knowledge Is Power

Having access to statistical information from all areas of your online marketing and sales activities gives you an advantage over competitors that do not have this information. Understanding trends and which marketing channels are no longer profitable allows you to maneuver as a business before damage is done to your bottom line. And, understanding shifts in consumer behavior gives you insights into the demands of your market. Knowing these things enables you to drop certain products or make strategic changes in your pricing that will result in big gains or, at the very least, limit damage to your profits.

Gateway to Higher Conversions

Having relevant statistical information at your fingertips is the first step in building a foundation for continuous experimentation on your website and other areas of your online presence. Being able to test certain copy and the overall layout of your e-commerce site is the next logical step for a profitable business that wants to raise its profits.

Understand Activity in Terms of Funnels

One of the basic concepts of web analytics is funnels. All marketing activities can and should be seen in terms of funnels. The idea of funnel analytics is that your target audience will go through a step-by-step flow or funnel until they make a purchase on your site. A typical marketing funnel may look like this:

  1. A fan on your business’s Facebook page sees one of your posts.
  2. The fan clicks on the post.
  3. The fan arrives on a landing page advertising a specific product and clicks on “add to cart.”
  4. The fan clicks on checkout.
  5. The fan enters their personal information and finalizes the purchase.

At each step of the process, a certain percentage of people will drop out of the funnel. Knowing these percentages will help you determine the barriers and psychology behind your customers.

Another classic example of a marketing funnel is that of an email campaign, let’s look at an example:

  1. You send 1,000 of your past customers an email promoting your summer sale.
  2. Out of the 1,000, 970 are delivered by your email service.
  3. Out of the 970, 350 are opened by past customers.
  4. Out of the 350, 50 click on one of the product links in the email.
  5. Out of the 50 that clicked, 45 add the product to their shopping cart.
  6. Out of the 45 that added one or more products to their shopping cart, 10 finalize their purchase.

When looking at this funnel, we can see that the campaign resulted in a 1% conversion rate. This number, however, does not tell the whole story. We can see that there were significant drops at the “open email,” “click on product link,” and “finalize purchase” stages. Now, we know where to focus our attention.

Track Everything Possible

In the world of web analytics, all traffic can be divided into 4 categories. These are search, referral, campaign, and direct. Search traffic is traffic that comes directly from search engines like Google, Bing, and Yahoo. Referral traffic is traffic that comes directly from a link on a different website. Campaign traffic is traffic that has been tagged by the marketer. Direct traffic is traffic that doesn’t have a known source. As you work with Google Analytics, these 4 categories will become more familiar.

A good practice is to manually tag your marketing campaigns so they are better segmented within Google Analytics. Let me give you an example.

Let’s say you publish two posts to Facebook. The first is a regular post about your industry, and it links to a blog post on your site. The second is a special post announcing a new promotion. If you aren’t manually tagging these links, then all the traffic from both posts will appear in Google Analytics as Referral traffic with Facebook being the referrer. It would be more useful to tag each of these posts as different campaigns.

The way you tag links is with UTMs. UTM tags are small snippets of text which appear at the end of a link. Below is an example of a UTM tagged link:

Store owners need to use UTMs on every single link that drives traffic to any of their web properties. If you don’t have access to the link – for example, if it’s a link in an email campaign being sent out by a partner – then send the UTMs to the partner and ask him or her to add them to the link. The more segmented your traffic the more you can learn about the different channels.

Below are links to great resources on UTMs and tagging your campaigns:

  1. What are UTM Tracking Codes (FAQ by HubSpot)
  2. URL Builder (a must!).
  3. UTM Codes to Track All Your Marketing Campaigns

Set Up Your Funnel Analytics

When it comes to funnel analytics for e-commerce sites, I recommend Google Analytics. The reasons I like these GA is because Google provides great support for e-commerce analytics natively within Google Analytics.

Building A E-Commerce Analytics Foundation With Quality Data

E-commerce analytics is going to be the foundation of a lot of your business decision-making, and any foundation needs to be built on solid ground. In this conversation, data quality is what builds that solid foundation.

Take a step back and think about it. When you’re determining things like products to sunset or changes to make to the site, what are you going to base your decision on? It’s all about the data you pull using the metrics that we are going to be covering. 

So, if your data is inaccurate or badly captured, you’re going to be basing major decisions on incorrect information, a potential disaster scenario.

Best practices for data quality may be simple in principle, but hard to execute. Some common actions here include:

  1. Clearly defining data requirements: figuring out what data is going to effectively drive your digital marketing efforts.
  2. Scouting reliable data sources: Making sure the data sources you do use are up-to-date and trustworthy.
  3. Audit for data errors: Keep a close eye on your data and perform regular checks for any mistakes or inconsistencies.
  4. Maintain data hygiene: Keep your data clean and well-organized.
  5. Ensure data privacy and security: Protect the privacy and security of your customer data. 

With this said, maintaining data quality can be a challenge, especially for small e-commerce marketing teams that may have to wrangle a lot of different data. There are solutions in the space that can help with data quality, though, and ObservePoint is a powerful option.

A screenshot of the ObservePoint interface.

The ObservePoint platform puts your team in the driver’s seat when it comes to improving overall data quality. Here are some of the ways it can help:

  1. Ensure Complete Data: ObservePoint helps ensure that all relevant data is being collected from your website, including transactional data, product data, and customer data. This ensures that you have a complete understanding of your customers’ behavior, preferences, and purchase patterns.
  2. Validate E-commerce Analytics Tracking: ObservePoint can validate that your e-commerce analytics tracking is set up correctly and firing accurately.
  3. Verify Third-Party Integrations: ObservePoint can verify that third-party integrations, such as payment gateways and email marketing platforms, are functioning correctly and providing accurate data.
  4. Ensure Data Governance: ObservePoint provides a centralized platform for data governance, allowing you to easily manage data sources, data types, and data access.
  5. Automate Audits: ObservePoint can automate audits of your website, saving you time and resources while ensuring that your data is accurate and reliable.
  6. Generate Reports: ObservePoint provides comprehensive reports on data quality, allowing you to easily identify areas of improvement and make informed decisions that drive sales.
A screenshot of the ObservePoint interface.

Before you start thinking about your e-commerce analytics plan, you want to make sure that you have a data quality plan first. With that in mind, though, what are some of the metrics you should be focusing on?

Get Started with Google Analytics’s E-commerce Integration

Google Analytics has become a standard tool when it comes to web analytics because of its ease of use, informative reports, and the fact that it’s free. Google Analytics is a very powerful tool for e-commerce sites because Google allows you to send all your sales data to your Google Analytics account. Once this integration is set up, all your sales will be tied to actual sessions, allowing you to connect sales to specific marketing channels.

Setting up e-commerce tracking in Google Analytics is a multi-step process which requires that you first enable e-commerce tracking in your Google Analytics admin and then make some changes to your code. This last part can be tricky, and I recommend that you get a programmer friend or your web designer to help you out with this step. If you get stuck, you can check out some of the useful guides listed below:

  1. Google E-commerce Tracking – Complete Guide
  2. Google Developers – E-commerce Tracking

Other Important Web Analytic Metrics and Where to Find Them

Now that we have covered some of the basics of web analytics and how to set up Google Analytics, I want to cover some other aspects of web analytics.

Email Marketing Funnels

Email marketing is far from dead and should be a major component of your online marketing activities. What makes email marketing unique in regard to web analytics is that all email marketing campaigns have the same basic funnel.

The steps in all email marketing funnels are:

  1. Sent – The number of emails sent
  2. Delivered – The number of emails delivered to your campaign list
  3. Unique opens – The percentage of individuals in your list that opened the email at least once
  4. Unique clicks – The percentage of individuals in your list that clicked on any of the links in your email at least once
  5. Visits to your landing page – The percentage of individuals from your list that arrived on your landing page
  6. Performed action – The percentage of individuals from your list that performed a specific action (examples: subscribed to your newsletter, bought your product, etc.)

The first 4 steps in this funnel should be available to you in your email service, while the rest of the funnel can be measured in Google Analytics.

Social Media Analytics

Social media has become a popular marketing channel for online store owners over the last few years. As with email marketing, it is possible to map out entire funnels for your social media marketing activities.

Facebook Analytics – If you are one of the millions of online businesses that has a Facebook page, then you are most likely familiar with the Facebook Page Insights section. Facebook has rolled out numerous versions of page insights over the last few years. Even though this can be frustrating, the section has become more and more user friendly over time.

yotpo facebook analytics

Screenshot from the Page Insights of Yotpo’s Facebook page

Below is a list of guides that cover how to use the information available in Facebook’s Page Insights:

  1. A Definitive Guide for Using Facebook Insights for Your Business
  2. Getting Started and General Page Metrics (Facebook)

Twitter Analytics – Twitter is another very popular social media network for online store owners. Unfortunately, Twitter doesn’t provide analytics to regular users like Facebook does. Twitter does offer analytics to advertisers and users that use Twitter Cards.

I recommend using a service like Sprout Social, Hootsuite, or Buffer to get analytics on impressions and clicks on your tweets.

twtrland analytics

Twtrland also allows you to run searches on other Twitter users

Pay-Per-Click and Other Paid Marketing Activities

PPC can be a very profitable channel for certain e-commerce sites, and I highly recommend that you experiment with the channel. The main issue with PPC is it is important that you aren’t “spraying and praying” and that you actually have a strong grasp on the performance of your campaigns. PPC is tough for most and can be very time consuming, so another option is to outsource it. Even if you do decide to outsource it, it is important that you understand the basic terminology so you can understand the reports the outside company will provide you.

Below is a list of the common terminology in PPC analytics:

  1. CPM (Cost-per-mille or cost-per-thousand impressions) – A pricing model that charges for every one thousand impressions (displays of an ad to a user)
  2. CPC (cost-per-click) – A pricing model that charges for every click on an ad
  3. CPA (cost-per-action) – A pricing model that charges every time a visitor completes a specific action
  4. CTR (click-through-rate) – The number of times an ad was clicked divided by the number of times the ad appeared in a given time
  5. Average position – This is the average position in which your ad appeared within the search results

For a full list of all common ad-related terms, click here.

A/B Testing and Other Optimization Tips

Setting up Google Analytics, and understanding the core analytics within Facebook’s Page Insights, is only the beginning. The real magic happens once you have enough data and you understand what is working and what is not. Then, it’s on to optimization of your funnels and shifting your marketing dollars.

A service I love is Optimizely, which is the most popular A/B testing tool on the market. Optimizely helps you create numerous versions of your web pages and provides in-depth analytics on how these different versions perform. You can run numerous experiments within Optimizely, and with some luck and a lot of patience, you can make massive gains in your conversion rate and average order value.

Below are a number of useful guides and case studies related to A/B testing:

  1. A Beginners Guide to Simple A/B Testing
  2. 100 Conversion Optimization Case Studies
  3. 4 Areas to A/B Test for E-commerce Sites

Use an Optimization Calendar

Once you get into the “optimization zone,” you will be making a number of tests and changes to your marketing, website, and other aspects of your business. In order to track everything properly, I recommend setting up a separate calendar in your Google Calendar (or any other calendar tool you are using) to track specific tests. The reason this is a good idea is if there is a big spike in sales, or maybe even the opposite, you won’t know what caused the change if you aren’t recording the tests.

You can use the same calendar for recording the launches of specific marketing campaigns and other activities that might have an effect on your business.


Having a strong data collection setup and access to detailed reports in services like Google Analytics, Facebook, and others will provide you with the information you need to make tough, but critical business decisions. I hope this post has emphasized the importance of web analytics for online store owners and why I believe it is an area which, if mastered, will provide major competitive advantages to store owners.

If you feel there is anything missing from this guide, then please let me know in the comments section below. Looking forward to your feedback.

Author bio:

Justin Butlion is a member of the growth team at Yotpo. He loves to blog about e-commerce, online marketing, web development, and entrepreneurship. Check out his latest posts at the Yotpo blog or contact him directly at [email protected].

Consulting with Neil Patel

See How My Agency Can Drive More Traffic to Your Website

  • SEO - unlock more SEO traffic. See real results.
  • Content Marketing - our team creates epic content that will get shared, get links, and attract traffic.
  • Paid Media - effective paid strategies with clear ROI.

Book a Call

Are You Using Google Ads?Try Our FREE Ads Grader!

Stop wasting money and unlock the hidden potential of your advertising.

  • Discover the power of intentional advertising.
  • Reach your ideal target audience.
  • Maximize ad spend efficiency.
Ads Grader