Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Data Analytics for Marketing
Data Analytics for Marketing

Data Analytics for Marketing : A practical guide to analyzing marketing data using Python

Arrow left icon
Profile Icon Guilherme Diaz-Bérrio
Arrow right icon
$24.99 $35.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5 (2 Ratings)
eBook May 2024 452 pages 1st Edition
eBook
$24.99 $35.99
Paperback
$44.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Guilherme Diaz-Bérrio
Arrow right icon
$24.99 $35.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5 (2 Ratings)
eBook May 2024 452 pages 1st Edition
eBook
$24.99 $35.99
Paperback
$44.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$24.99 $35.99
Paperback
$44.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
Table of content icon View table of contents Preview book icon Preview Book

Data Analytics for Marketing

What is Marketing Analytics?

Half the money I spend on advertising is wasted; the trouble is I don’t know which half.

– John Wanamaker, the forefather of marketing

In this chapter, we will attempt to cover the fundamentals of marketing analytics as a role and discipline. As a marketing analyst, you are faced with common questions during your day-to-day activities. For example, “How did this campaign perform?” or “How can you optimize your budget to achieve a result?”.

In this chapter, we will break down the types of analytics (from descriptive to prescriptive), the value they add to a business, and the questions each of them answers.

You will learn about the following topics:

  • What is analytics?
  • An overview of marketing analytics
  • Exploring different types of analytics
  • Beyond simple pivot tables
  • Why Python?
  • Modern challenges in the world of privacy-centric marketing
  • The importance of data engineering...

What is analytics?

Like any buzzword, analytics can often be overused and hard to define from an exact source. According to the Oxford Dictionary, the textbook definition of analytics is “the systematic computational analysis of data or statistics, in order to describe, predict, and improve business performance”. Gartner defines it more broadly as “statistical and mathematical data analysis that clusters, segments, scores, and predicts what scenarios are most likely to happen.”

Analytics is commonly known to branch out into four pillars or areas: descriptive analytics, diagnostic analytics, predictive analytics, and prescriptive analytics.

In essence, analytics is the act of extracting meaningful and actionable insights from data by using a set of techniques and tools paired with domain knowledge. Raw data, however large it may be, will not be a silver bullet in your quest for insights in marketing. Neither will advanced techniques and a lack of domain...

An overview of marketing analytics

The quote at the beginning of this chapter illustrates one of the fundamental questions of the marketing manager in their day-to-day activities. The best way to evaluate where to spend and target their efforts to achieve their ultimate target is to obtain new customers or retain current ones.

Marketing analytics is nothing more than the application of analytical methods to said goal, bringing a quantifiable way of guiding investment or consumer targeting decisions. As with any new and growing domain, it is hard to pin an exact definition of it, but we can define it as a “technology-enabled and model-supported approach to harness customer and market data to enhance marketing decision making”. Being a domain in the larger field of data analytics, it looks to use mathematics and statistics together with computational tools and techniques to find meaningful patterns and knowledge in data. In this book, we will strive to focus on only...

Exploring different types of analytics

As we have seen earlier, analytics is a broad term covering four different pillars in the modern analytics ladder. Each plays a role in how your business can better understand what your data reveals and how you can use those insights to drive business objectives.

The following diagram will help you visualize how the pillars relate to one another:

Figure 1.2 – The analytics maturity model

Figure 1.2 – The analytics maturity model

The first step in the process is to always understand the fundamental questions you are trying to answer. All analytical questions can be boiled down into the following categories:

  • What happened and when did it happen?
  • Why and how did it happen?
  • What will happen in the future?
  • How can I make something happen?

These categories will define the different areas of analytics involved, which will inform our decision about what tooling and techniques to apply.

Analytics can be split into four areas...

Beyond simple pivot tables

You might wonder why we need a book on Marketing Analytics Using Python. Surely you can do the same thing using the trustworthy combination of Excel, some VLOOKUPs, and some PivotTables. This is a widespread misunderstanding, and the problem stems from not realizing what the entire analytical process should look like and why. The following diagram shows the process in a simplified way:

Figure 1.3 – Analytical process

Figure 1.3 – Analytical process

As an analyst, you should have the preceding workflow that will generally go through the following tasks:

  1. You should, first and foremost, scope out the question. You need to understand what is being asked of you clearly. Remember that your stakeholders have immense business knowledge and a problem they need to solve, but more often than not, the question might not be clearly defined.
  2. You must extract the correct datasets to explore the problem space. This might be as easy as extracting a CSV from...

Why Python?

Python offers a marketing analyst many benefits. First, it is an easy but powerful programming language with a great ecosystem of tools and libraries for data analysis and statistics. Second, as a programming language, it is easily testable, and the code can be made in such a way as to be generalizable and reusable. Do not underestimate this second point. Reusability is a great asset to have. You can reuse them for other datasets or testing purposes, which will massively increase your productivity in the medium to long term. Third, it handles massive amounts of data with modern libraries such as pandas and NumPy. The limit is essentially the physical memory in your machine.

Some of you might wonder, “Why not R?”. It is a matter of personal preference. Most marketing analytics was derived from the field of applied econometrics. R is one of the prime tools in econometrics and statistics. As a language, it was built for statisticians who did not want to learn...

Modern challenges in the world of privacy-centric marketing

Marketers and marketing analysts have had the chance to swim in a world of data in the last 20 years. In fact, that was one of the main drivers of the spread of marketing analytics in the field, especially in the area of digital marketing, which accounts for almost two thirds of all marketing spending worldwide. However new trends in the attitude toward privacy and tracking online are making it harder for us, as analysts, to quickly derive insights from available data.

As we can see from Figure 1.4, for years the trend was clear. The largest proportion of marketing budgets went to online and digital marketing:

Figure 1.4 – Evolution of digital marketing spend as a percentage of global marketing spend

Figure 1.4 – Evolution of digital marketing spend as a percentage of global marketing spend

At our disposal, we had highly granular and vast datasets on our users, encompassing their behaviors, which ads they saw, when they saw them, and how they reacted to them. Clickstream data...

The importance of data engineering and tracking

When moving past toy examples, data wrangling and transformation is neither easy nor something to be taken lightly. As described, since most digital marketing spending and interactions are of a digital nature, you are essentially swimming in a sea of data. Your job as an analyst is, as described at the beginning of this chapter, to generate insights in a timely manner. Here, efficient data accessibility is going to become a topic, especially if you work for a larger company with multiple large data sources. While a deeper and thorough walkthrough of data engineering is outside of the scope of this book, as an analyst, you should have a basic understanding of what it is and why it matters.

Don’t moonlight as a data engineer

Excel gives us a bit of a bad habit as analysts: we use it simultaneously as a database and a tool to generate insights. The use of it as a database gives us a false sense of understanding of the need for...

Summary

In this chapter, we delved into what we mean by marketing analytics. We broke down the types of analytics—from descriptive to prescriptive— discussed the value they add to businesses, and learned what questions each of them answers.

We investigated the fundamental questions you are trying to answer—what happened, when did it happen, how did it happen, what will happen in the future, and how can I make something happen. We also covered how they relate to each sub-domain of analytics, and we can now distinguish clearly between descriptive, predictive, diagnostic, and prescriptive analytics.

First, analytics is a complex field that can be summarized as the intersection between statistics, computer science, and analysis. You need to understand that marketing analytics distills those tools and techniques to the efforts of marketing to better optimize spending and obtain a return on investment.

Analytics can be split into question categories that map...

Further reading

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Analyze marketing data using proper statistical techniques
  • Use data modeling and analytics to understand customer preferences and enhance strategies without complex math
  • Implement Python libraries like DoWhy, Pandas, and Prophet in a business setting with examples and use cases
  • Purchase of the print or Kindle book includes a free PDF eBook

Description

Most marketing professionals are familiar with various sources of customer data that promise insights for success. There are extensive sources of data, from customer surveys to digital marketing data. Moreover, there is an increasing variety of tools and techniques to shape data, from small to big data. However, having the right knowledge and understanding the context of how to use data and tools is crucial. In this book, you’ll learn how to give context to your data and turn it into useful information. You’ll understand how and where to use a tool or dataset for a specific question, exploring the "what and why questions" to provide real value to your stakeholders. Using Python, this book will delve into the basics of analytics and causal inference. Then, you’ll focus on visualization and presentation, followed by understanding guidelines on how to present and condense large amounts of information into KPIs. After learning how to plan ahead and forecast, you’ll delve into customer analytics and insights. Finally, you’ll measure the effectiveness of your marketing efforts and derive insights for data-driven decision-making. By the end of this book, you’ll understand the tools you need to use on specific datasets to provide context and shape your data, as well as to gain information to boost your marketing efforts.

Who is this book for?

This book is for data analysts and data scientists working in a marketing team supporting analytics and marketing research, who want to provide better insights that lead to data-driven decision-making. Prior knowledge of Python, data analysis, and statistics is required to get the most out of this book.

What you will learn

  • Understand the basic ideas behind the main statistical models used in marketing analytics
  • Apply the right models and tools to a specific analytical question
  • Discover how to conduct causal inference, experimentation, and statistical modeling with Python
  • Implement common open source Python libraries for specific use cases with immediately applicable code
  • Analyze customer lifetime data and generate customer insights
  • Go through the different stages of analytics, from descriptive to prescriptive

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : May 10, 2024
Length: 452 pages
Edition : 1st
Language : English
ISBN-13 : 9781801813839
Category :
Languages :
Concepts :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning

Product Details

Publication date : May 10, 2024
Length: 452 pages
Edition : 1st
Language : English
ISBN-13 : 9781801813839
Category :
Languages :
Concepts :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 139.97
Extending Excel with Python and R
$44.99
Python Data Cleaning Cookbook
$49.99
Data Analytics for Marketing
$44.99
Total $ 139.97 Stars icon

Table of Contents

19 Chapters
Part 1: Fundamentals of Analytics Chevron down icon Chevron up icon
Chapter 1: What is Marketing Analytics? Chevron down icon Chevron up icon
Chapter 2: Extracting and Exploring Data with Singer and pandas Chevron down icon Chevron up icon
Chapter 3: Design Principles and Presenting Results with Streamlit Chevron down icon Chevron up icon
Chapter 4: Econometrics and Causal Inference with Statsmodels and PyMC Chevron down icon Chevron up icon
Part 2: Planning Ahead Chevron down icon Chevron up icon
Chapter 5: Forecasting with Prophet, ARIMA, and Other Models Using StatsForecast Chevron down icon Chevron up icon
Chapter 6: Anomaly Detection with StatsForecast and PyMC Chevron down icon Chevron up icon
Part 3: Who and What to Target Chevron down icon Chevron up icon
Chapter 7: Customer Insights – Segmentation and RFM Chevron down icon Chevron up icon
Chapter 8: Customer Lifetime Value with PyMC Marketing Chevron down icon Chevron up icon
Chapter 9: Customer Survey Analysis Chevron down icon Chevron up icon
Chapter 10: Conjoint Analysis with pandas and Statsmodels Chevron down icon Chevron up icon
Part 4: Measuring Effectiveness Chevron down icon Chevron up icon
Chapter 11: Multi-Touch Digital Attribution Chevron down icon Chevron up icon
Chapter 12: Media Mix Modeling with PyMC Marketing Chevron down icon Chevron up icon
Chapter 13: Running Experiments with PyMC Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.5
(2 Ratings)
5 star 50%
4 star 50%
3 star 0%
2 star 0%
1 star 0%
Praise Ifetogun Jul 12, 2024
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book masterfully covers the entire range of marketing analytics, from the basics of extracting and exploring data to advanced topics like econometrics, forecasting, and customer lifetime value analysis. It strikes a perfect balance between theory and practical application, ensuring readers can both understand and implement the techniques discussed.One of the standout features of this book is its clarity and accessibility. Complex concepts are broken down into understandable segments, supported by real-world examples and practical exercises. Whether you're looking to design compelling dashboards with Streamlit or delve into the intricacies of multi-touch digital attribution and media mix modeling, this book provides the tools and knowledge needed to excel. "Data Analytics for Marketing" is not just a read but a comprehensive resource that will stay on your desk as a go-to reference in your analytics journey.
Amazon Verified review Amazon
Seraf Sep 23, 2024
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
A book I have difficulty getting in it. I mean, look at the equation expressions... hard to read. The editor hasn't done its job? But, still readable.
Subscriber review Packt
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.