Skip to content

Analyzing and calculating key marketing metrics with SQL and Python

Notifications You must be signed in to change notification settings

rileypredum/marketing_analytics_sql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

SQL and Python Marketing KPIs/Metrics

Introduction

This is a SQL script/Jupyter Notebook duo that calculates key metrics for marketing departments, like the cost of acquiring a new customer (CAC), cost per click (CPC), cost per impression (CPM), customer lifetime value (LTV), and click-through rate (CTR).

Setup

  1. You'll need to fork or clone the repo, then go into MySQL or whatever other SQL client you use and input the .csv files from /01_data/ into a database. I called my database marketing_analysis. You can call yours whatever you like.

  2. Next, you'll connect to the database. It should work to just follow along in the analysis_queries.sql file.

When working on the Jupyter Notebook, make sure to adjust the %cd command at the top to the directory of your local repo.

Enjoy!

About

Analyzing and calculating key marketing metrics with SQL and Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published