Attribute the conversion

Occarding to the documentation pikiw attributes conversion to the last referrer.

I have the situation of a ‘normal’ referrer from google, followed by a referrer from an adwords campaign:

-1- terms - Пошук Google ->
-2- adwords - > Example Domain

this visitor converted into a sale ( tracked using the piwik API using the visitor id from the cookie with the ip number) the sale shows up fine in the visitor log

I would expect the conversion attributed to the campaign however the referrerType is ‘search’ and the campaing does not show up in the visitor log.

I testd it with

the origin in piwik shows ‘first’ and the conversion is attributed to first.

I changed visit_standard_length and window_look_back_for_visitor, for the rest it’s all default.

Any clues why the attribution is not working as documented?

(my actual preference would be that a campaign always overrules a plain referrer but a referrer does not overrule a campaign)

It attributes to the Referrer of the Last Visit.

If your user visited the campaign in the same visit as he visited from search engine, then search engine will be attributed, because PIwik tracks only one referrer per visit (the first one seen): see Visits from search engines or campaigns are not recorded, Piwik shows "There is no data for this report" for all Referrers reports. - Analytics Platform - Matomo

Good news, we have released a new feature for Marketing Channels Attribution Reporting. You can learn more about it here: Multi Channel Conversion Attribution - Analytics Platform - Piwik

Multi Channel Conversion Attribution, also known as Cross Channel Attribution, lets you assign a value to each visit prior to a conversion or prior to a sale. By default, Piwik lets you only know the referrer of the last non-direct visit when a conversion happens. However, in reality, multiple channels contribute to a conversion as a visitor often visits a website several times before they convert a goal. By applying different attribution models, you get a better view on which channels actually lead to a conversion. This helps you finding out where to spend your money best when acquiring visitors.

The premium plugin can be purchased here:

Have a wonderful end of year,