# Attribution Fields

**URL:** <https://forum.mautic.org/t/attribution-fields/7058>\
**Category:** Product Support\
**Created:** [January 5, 2017, 5:48am UTC](https://forum.mautic.org/t/attribution-fields/7058 "2017-01-05T05:48:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgala](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@mgala](https://forum.mautic.org/u/mgala)\
**Post date:** [January 5, 2017, 5:48am UTC](https://forum.mautic.org/t/attribution-fields/7058/1 "2017-01-05T05:48:55Z")

</div>

Hi everyone,  
  
  
  
I’m trying to figure out how the Attribution and Attribution date fields are populated. Are they simply setup as hidden form fields that will populate the Contact fields when a form is posted? I can not seem to find any clear documentation. I presume that once I can get these 2 fields populated, I will be able to generate data in the attribution reports. I am especially curious to see how the multi-attribution report looks, since it must pull data from the event record rather than the contact record (which only stores 1 value). Thank you for any insight and info in advance.

---

<div class="post-metadata">

**Author:** ![mgala](https://avatars.discourse-cdn.com/v4/letter/m/ecb155/32.png) [@mgala](https://forum.mautic.org/u/mgala)\
**Post date:** [January 5, 2017, 5:48am UTC](https://forum.mautic.org/t/attribution-fields/7058/2 "2017-01-05T05:48:55Z")

</div>

Hi everyone,

I’m trying to figure out how the Attribution and Attribution date fields are populated. Are they simply setup as hidden form fields that will populate the Contact fields when a form is posted? I can not seem to find any clear documentation. I presume that once I can get these 2 fields populated, I will be able to generate data in the attribution reports. I am especially curious to see how the multi-attribution report looks, since it must pull data from the event record rather than the contact record (which only stores 1 value). Thank you for any insight and info in advance.

---

<div class="post-metadata">

**Author:** ![ihackalot](https://avatars.discourse-cdn.com/v4/letter/i/8797f3/32.png) [@ihackalot](https://forum.mautic.org/u/ihackalot)\
**Post date:** [January 27, 2017, 5:27am UTC](https://forum.mautic.org/t/attribution-fields/7058/3 "2017-01-27T05:27:46Z")

</div>

Had the same questions, I [found the answer in the blog](https://mautic.com/blog/why-is-marketing-attribution-a-big-deal/) thanks to @brandner…

---

<div class="post-metadata">

**Author:** ![mbrinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mbrinson/32/116_2.png) [@mbrinson](https://forum.mautic.org/u/mbrinson)\
**Post date:** [February 17, 2017, 9:48pm UTC](https://forum.mautic.org/t/attribution-fields/7058/4 "2017-02-17T21:48:25Z")

</div>

Thanks for the link ihackalot. But I’m still not quite sure how to best implement what was described in the blog using the new fields.

Does anyone have any specific examples for practical application?

---

<div class="post-metadata">

**Author:** ![dlee](https://avatars.discourse-cdn.com/v4/letter/d/d6d6ee/32.png) [@dlee](https://forum.mautic.org/u/dlee)\
**Post date:** [April 4, 2017, 3:55pm UTC](https://forum.mautic.org/t/attribution-fields/7058/5 "2017-04-04T15:55:41Z")

</div>

The blog link above is broken. Here is the updated link to that blog post: [https://mautic.com/resources/blog/why-is-marketing-attribution-a-big-deal/](https://mautic.com/resources/blog/why-is-marketing-attribution-a-big-deal/)

However, the blog post doesn’t explain the definition of the Attribution and Attribution Date fields on the Contact or how those fields are populated.

---

<div class="post-metadata">

**Author:** ![slawomir](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@slawomir](https://forum.mautic.org/u/slawomir)\
**Post date:** [April 10, 2017, 1:29pm UTC](https://forum.mautic.org/t/attribution-fields/7058/6 "2017-04-10T13:29:23Z")

</div>

Did anyone figure this out? The linked article only describes what attribution is. So unless you’re meant to fill in the attribution field (in edit contact) by hand for every contact I’m not sure how you’re supposed to get it working. I feel like this should be connected to points or stages. Both the attribution and the attribution date should somehow be set by actions, for instance when someone reaches 100 points or visits a specific url it triggers the attribution.

Just seems like the feature is broken or incomplete. Would be cool if it worked, really useful, especially with the dashboard widgets.

Please if someone has any pointers or tips on how to solve this please let the rest of us know. The only solution I see is to dig in the code and figure out what’s what.

---

<div class="post-metadata">

**Author:** ![slawomir](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@slawomir](https://forum.mautic.org/u/slawomir)\
**Post date:** [April 11, 2017, 12:17pm UTC](https://forum.mautic.org/t/attribution-fields/7058/7 "2017-04-11T12:17:31Z")

</div>

no word, anyone?

---

<div class="post-metadata">

**Author:** ![m0ltar](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@m0ltar](https://forum.mautic.org/u/m0ltar)\
**Post date:** [April 19, 2017, 5:05am UTC](https://forum.mautic.org/t/attribution-fields/7058/8 "2017-04-19T05:05:40Z")

</div>

I would like to know this too. There are two fields in the database `attribution` and `attribution_date`. But I do not see a way in the UI to set these, nor there is a way in the API.

---

<div class="post-metadata">

**Author:** ![diegov](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/diegov/32/196_2.png) [@diegov](https://forum.mautic.org/u/diegov)\
**Post date:** [August 2, 2017, 4:51pm UTC](https://forum.mautic.org/t/attribution-fields/7058/9 "2017-08-02T16:51:21Z")

</div>

Have the same question.

As I could understand, attribution should be filled with the campaign, the way a lead was converted, and so the date it happened, and we could report what campaign was more successful, etc. Is that it?

Maybe it should be filled once the contact is sent to the CRM/Sales system.

---

<div class="post-metadata">

**Author:** ![henryweismann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/henryweismann/32/3125_2.png) [@henryweismann](https://forum.mautic.org/u/henryweismann)\
**Post date:** [November 28, 2020, 6:55pm UTC](https://forum.mautic.org/t/attribution-fields/7058/10 "2020-11-28T18:55:41Z")

</div>

I keep seeing this page in the search results when trying to figure out Mautic attribution so I decided to update this post with the exact answer.

Basically it records the conversion value for the person with a date when you send that to mautic for a contact. You can optionally send just the conversion value and the current date will be used. Then IF that was recorded the attribution reports can report on the first touch, last touch or all the touches:

```
/**
     * If there is an attribution amount but no date, insert today's date.
     */
    public function checkAttributionDate()
    {
        $attribution = $this->getFieldValue('attribution');
        $attributionDate = $this->getFieldValue('attribution_date');

        if (!empty($attribution) && empty($attributionDate)) {
            $this->addUpdatedField('attribution_date', (new \DateTime())->format('Y-m-d'));
        } elseif (empty($attribution) && !empty($attributionDate)) {
            $this->addUpdatedField('attribution_date', null);
        }
    }

```

This is where I found the answer:

> <https://github.com/mautic/mautic/pull/5547#issuecomment-360175514>
>
> @javjim-mautic @escopecz The attribution reports are based on campaign decisions… (when a contact took action or had a touchpoint). The contact needs to have an attribution date and attribution (dollar value) in their contact profile for the report to pick them up. First touch is when the first decision took place on or before the attribution date. The last touch is the last decision. Multi lists all the decisions.

> The attribution reports are based on campaign decisions (when a contact took action or had a touchpoint). The contact needs to have an attribution date and attribution (dollar value) in their contact profile for the report to pick them up. First touch is when the first decision took place on or before the attribution date. The last touch is the last decision. Multi lists all the decisions.

Thank you @alanhartless

My only remaining question is how do we send info on MULTIPLE conversions? Shouldn’t attribution date and value be a one to many situation?

---

<div class="post-metadata">

**Author:** ![zaharovrd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/zaharovrd/32/7799_2.png) [@zaharovrd](https://forum.mautic.org/u/zaharovrd)\
**Post date:** [August 7, 2024, 10:54am UTC](https://forum.mautic.org/t/attribution-fields/7058/11 "2024-08-07T10:54:33Z")

</div>

Has anyone managed to build a report? - I have completed attribution data for several contacts, but the reports are empty
