Git Product home page Git Product logo

fractribution's Introduction

Fractribution code base

Attribution Overview

In a marketing context, Attribution involves identifying the set of user actions ("events" or "touchpoints") that contribute in some manner to a desired outcome, and then assigning a value to each of these events. Users might click on multiple ads before converting. This can make it challenging to assign proper credit to the different marketing channels. For example, should all the credit go to the last ad the user saw, or the first ad? Should all the ads share in the credit equally? Or should some other rule be used to determine how to distribute credit?

Data-driven attribution (DDA)

DDA attempts to algorithmically work out a fair weighting of credit among marketing channels. For example, a particular display ad might not convert immediately, but users who click the display ad might be much more likely to convert later on. In this case, the display ad should get credit, even though it may not be the first or last ad on a user's path to conversion.

Fractribution Package

Google Marketing Platform products already support DDA. This Fractribution package is a DDA algorithm that generates user-level fractional attribution values for each conversion. The advantage of user-level attribution is that the attribution values can later be joined with custom user-level data (e.g. transaction value, lifetime value etc). This can be useful when regulation or data policy prevents ecommerce/revenue events from being shared with the Google Marketing Platform.

Please see Fractribution_Slides.pdf file in this directory for more background on use cases and details on the DDA algorithm.

Using Fractribution

For more instructions, including a tutorial for running Fractribution over sample GA360 data from the Google Merchandise Store, from see py/README.md.

Directory structure

fractribution
├── README.md
├── py
├──── README.md
├──── main.py
├──── fractribution.py
├──── templates/
├──── Dockerfile
└──── start.py

Disclaimer: This is not an officially supported Google product.

fractribution's People

Contributors

fractribution avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fractribution's Issues

Incrementality

Hello,

Amazing package, many thanks for sharing it with the community. I have one question regarding how we steer the model towards what causal uplift tests show. How might we incorporate this to adapt the Shapley model to be more accurate?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.