MKTATTRIBUTION Procedure

Heuristic Attribution Models

In addition to providing the Markov attribution model, the PROC MKTATTRIBUTION provides several heuristic attribution models: the first-touch, last-touch, linear, position-based, and time-decay attribution models. The first-touch attribution model attributes all credit for the conversion to the first-visited channel in the customer journey. The last-touch attribution model attributes all credit for the conversion to the last-visited channel. The linear attribution model distributes the credit for the conversion equally across all visited channels in the path. The position-based attribution model attributes 40% of credit to the first-visited channel, 40% to the last-visited channel, and the remaining 20% credit equally to the channels in between, if there are more than two visits in the journey. Otherwise, the position-based attribution model is the same as the linear attribution model. The time-decay attribution model attributes the credit increasingly to the channel that is closer to the conversion.

Assuming that there are n customer journeys, the number of conversions is m, where m less-than-or-equal-to n. upper C Subscript j Baseline left-parenthesis p right-parenthesis is the pth channel in customer j’s journey upper C Subscript j with length l Subscript j Baseline comma p equals 1 comma ellipsis comma l Subscript j Baseline, and j equals 1 comma ellipsis comma n. Let f left-parenthesis upper C Subscript j Baseline left-parenthesis p right-parenthesis equals i vertical-bar c o n v e r s i o n right-parenthesis equals 1 comma i equals 1 comma ellipsis comma upper K, where K is the number of channels, if upper C Subscript j Baseline left-parenthesis p right-parenthesis equals i and conversion occurs at the end of this journey; otherwise it equals 0. The contribution to channel i by the first-touch attribution model is calculated by

StartLayout 1st Row  c o n t r i b u t i o n left-parenthesis i right-parenthesis equals StartFraction sigma-summation Underscript j equals 1 Overscript n Endscripts f left-parenthesis upper C Subscript j Baseline left-parenthesis 1 right-parenthesis equals i vertical-bar c o n v e r s i o n right-parenthesis Over m EndFraction EndLayout

The bar chart in Figure 8 shows how the first-touch attribution model distributes the contributions for a journey that visits four channels.

Figure 8: Bar Chart for the First-Touch Attribution Model

Bar Chart for the First-Touch Attribution Model


The contribution to channel i by the last-touch attribution model is calculated similarly by

StartLayout 1st Row  c o n t r i b u t i o n left-parenthesis i right-parenthesis equals StartFraction sigma-summation Underscript j equals 1 Overscript n Endscripts f left-parenthesis upper C Subscript j Baseline left-parenthesis l Subscript j Baseline right-parenthesis equals i vertical-bar c o n v e r s i o n right-parenthesis Over m EndFraction EndLayout

The bar chart in Figure 9 shows how the last-touch attribution model distributes the contributions for a journey that visits four channels.

Figure 9: Bar Chart for the Last-Touch Attribution Model

Bar Chart for the Last-Touch Attribution Model


The contribution to channel i by the linear attribution model is calculated by

StartLayout 1st Row  c o n t r i b u t i o n left-parenthesis i right-parenthesis equals StartFraction sigma-summation Underscript j equals 1 Overscript n Endscripts sigma-summation Underscript p equals 1 Overscript l Subscript j Baseline Endscripts f left-parenthesis upper C Subscript j Baseline left-parenthesis p right-parenthesis equals i vertical-bar c o n v e r s i o n right-parenthesis slash l Subscript j Baseline Over m EndFraction EndLayout

The bar chart in Figure 10 shows how the linear attribution model distributes the contributions for a journey that visits four channels.

Figure 10: Bar Chart for the Linear Attribution Model

Bar Chart for the Linear Attribution Model


If l Subscript j Baseline less-than equals 2, the position-based attribution model is the same as the linear attribution model. If l Subscript j Baseline greater-than 2, then let h left-parenthesis upper C Subscript j Baseline left-parenthesis p right-parenthesis equals i vertical-bar c o n v e r s i o n right-parenthesis equals 0.4 and e left-parenthesis upper C Subscript j Baseline left-parenthesis p right-parenthesis equals i vertical-bar c o n v e r s i o n right-parenthesis equals 0.2 left-parenthesis l Subscript j Baseline minus 2 right-parenthesis Superscript negative 1 if upper C Subscript j Baseline left-parenthesis p right-parenthesis equals i and if conversion occurs at the end of this journey; otherwise it equals 0. The contribution to channel i by the position-based attribution model is calculated by

StartLayout 1st Row 1st Column Blank 2nd Column c o n t r i b u t i o n left-parenthesis i right-parenthesis equals StartFraction 1 Over m EndFraction sigma-summation Underscript j equals 1 Overscript n Endscripts left-bracket bold upper A left-parenthesis l Subscript j Baseline less-than equals 2 right-parenthesis plus bold upper B left-parenthesis l Subscript j Baseline greater-than 2 right-parenthesis right-bracket EndLayout

where bold upper A left-parenthesis l Subscript j Baseline less-than equals 2 right-parenthesis equals sigma-summation Underscript p equals 1 Overscript l Subscript j Baseline Endscripts f left-parenthesis upper C Subscript j Baseline left-parenthesis p right-parenthesis equals i vertical-bar c o n v e r s i o n right-parenthesis slash l Subscript j, if l Subscript j Baseline less-than equals 2, and otherwise it equals 0; and bold upper B left-parenthesis l Subscript j Baseline greater-than 2 right-parenthesis equals h left-parenthesis upper C Subscript j Baseline left-parenthesis 1 right-parenthesis equals i vertical-bar c o n v e r s i o n right-parenthesis plus h left-parenthesis upper C Subscript j Baseline left-parenthesis l Subscript p Baseline right-parenthesis equals i vertical-bar c o n v e r s i o n right-parenthesis plus sigma-summation Underscript p equals 2 Overscript l Subscript j Baseline minus 1 Endscripts e left-parenthesis upper C Subscript j Baseline left-parenthesis p right-parenthesis equals i vertical-bar c o n v e r s i o n right-parenthesis, if l Subscript j Baseline greater-than 2, and otherwise it equals 0.

The bar chart in Figure 11 shows how the position-based attribution model distributes the contributions for a journey that visits four channels.

Figure 11: Bar Chart for the Position-Based Attribution Model

Bar Chart for the Position-Based Attribution Model


Let f be the half-life parameter, g left-parenthesis upper C Subscript j Baseline left-parenthesis p right-parenthesis equals i vertical-bar c o n v e r s i o n right-parenthesis equals left-parenthesis one half right-parenthesis Superscript left-parenthesis l Super Subscript j Superscript minus p right-parenthesis slash f if upper C Subscript j Baseline left-parenthesis p right-parenthesis equals i and if conversion occurs at the end of this journey; otherwise it equals 0. The contribution to channel i by the time-decay attribution model is calculated by

StartLayout 1st Row  c o n t r i b u t i o n left-parenthesis i right-parenthesis equals StartFraction 1 Over m EndFraction sigma-summation Underscript j equals 1 Overscript n Endscripts left-bracket sigma-summation Underscript p equals 1 Overscript l Subscript j Baseline Endscripts g left-parenthesis upper C Subscript j Baseline left-parenthesis p right-parenthesis equals i vertical-bar c o n v e r s i o n right-parenthesis slash upper D right-bracket EndLayout

where bold upper D equals sigma-summation Underscript q equals 1 Overscript l Subscript j Baseline Endscripts left-parenthesis one half right-parenthesis Superscript left-parenthesis l Super Subscript j Superscript minus q right-parenthesis slash f is the normalizing coefficient for journey j.

The bar chart in Figure 12 shows how the time-decay attribution model distributes the contributions for a journey that visits four channels.

Figure 12: Bar Chart for Time-Decay Attribution Model (HALFLIFE=1)

Bar Chart for Time-Decay Attribution Model (HALFLIFE=1)


Last updated: July 09, 2026