Marketing-Attribution-Models: Accurate Attribution
Get accurate digital marketing attribution with Marketing-Attribution-Models, a Python class for startup founders, with 365 GitHub stars.
365 stars87 forksPythonQuality 9/10Updated 4/28/2026100% free · open source
What it does
Marketing-Attribution-Models is a Python class that helps startup founders accurately attribute the impact of their digital marketing efforts on customer interactions and conversions.
•You're spending a significant budget on digital marketing and need to understand which channels are driving the most value.
•You're using multiple marketing channels and want to optimize your budget allocation based on data-driven insights.
•You need to measure the return on investment (ROI) of specific marketing campaigns or tactics.
Quick start
1Clone the repository using `git clone https://github.com/DP6/Marketing-Attribution-Models.git`
2Navigate to the project directory using `cd Marketing-Attribution-Models`
3Open the `marketing_attribution.py` file and import the necessary classes and functions
4Create an instance of the `MarketingAttribution` class, passing in your marketing data as a Pandas dataframe
5Call the `run_attribution` method to calculate attribution values for your marketing channels
Ready-to-paste prompt
from marketing_attribution import MarketingAttribution; attribution = MarketingAttribution(df); attribution.run_attribution()
Heads up: Make sure you have Python 3.8 or later installed, as well as the required libraries listed in the `requirements.txt` file, including Pandas and NumPy.
Saves to your device
Topics
attribution-model
digital-marketing-attribution
dp6
hacktoberfest
journey
mam
marketing-attribution
What's inside — free to inspect
No purchase needed
Read the entire source before you build — unlike paid marketplaces that hide it behind a buy button.
14
top-level files
4
folders
3.2M
repo size
Apache-2.0
license
Key files
_config.yml
README.md
requirements-dev.txt
requirements.txt
File tree
.github/
marketing_attribution_models/
readme-images/
tests/
_config.yml
.gitignore
.pylintrc
CODE_OF_CONDUCT.md
CONTRIBUTING.md
get-pip.py
Google_Demo_Attribution(MAM).ipynb
LICENSE
Marketing-Attribution-Models
pyproject.toml
README.md
requirements-dev.txt
requirements.txt
setup.py
Quick Actions
Details
Creator
DP6
Language
Python
Category
marketing
Published
1/27/2020
Are you the creator of this tool? Claim your listing → and earn 85% of every sale.