Skip to content
Vega-Lite templates

Attribution Models Compared

Credit assigned to channels under different attribution models.

Template previewVega-Lite
Rendering…

Make it your own.

{
  "$schema":"https://vega.github.io/schema/vega-lite/v5.json",
  "data":{"values":[
    {"ch":"Search","m":"First-touch","c":80},{"ch":"Search","m":"Last-touch","c":10},{"ch":"Search","m":"Linear","c":25},{"ch":"Search","m":"Position","c":40},
    {"ch":"Social","m":"First-touch","c":15},{"ch":"Social","m":"Last-touch","c":5},{"ch":"Social","m":"Linear","c":25},{"ch":"Social","m":"Position","c":15},
    {"ch":"Email", "m":"First-touch","c":5}, {"ch":"Email", "m":"Last-touch","c":40},{"ch":"Email", "m":"Linear","c":25},{"ch":"Email", "m":"Position","c":20},
    {"ch":"Direct","m":"First-touch","c":0}, {"ch":"Direct","m":"Last-touch","c":45},{"ch":"Direct","m":"Linear","c":25},{"ch":"Direct","m":"Position","c":25}
  ]},
  "mark":"bar",
  "encoding":{
    "x":{"field":"m","type":"nominal","title":"Attribution model"},
    "y":{"field":"c","type":"quantitative","title":"Credit %","stack":"zero"},
    "color":{"field":"ch","type":"nominal","title":"Channel"}
  },
  "width":420,"height":280
}