This repo contains ready-to-use templates to build a marketing attribution model:
- How to extract GA4 data: folder: 1_data_source_preparation
- How to map all input events to a single One Big Table to make the attribution model independent from the particular context of the company
- calculate first-touch, linear, and last-touch models. Folder: 3_attribution_models_metrcis_calculations
Detailed info in this medium post https://medium.com/@kobzevvv/b2b-marketing-attribution-data-model-guide-from-what-it-is-to-code-1730342e59af
Overview of the domain terminology:
Visualized logic for Attribution Metrics calculation