alex35mil / sourcebuster-js

Track the sources of your traffic
https://alexfedoseev.github.io/sbjs
MIT License
412 stars 92 forks source link

The definition of the source as organic does not work, and it is impossible to override it through the settings #41

Open skarfex opened 1 year ago

skarfex commented 1 year ago

yandex.ru is not defined as Organic by default, nothing happens when you try to define it yourself:

organics: [ { host: 'yandex.ru', param: 'text', display: 'yandex' } ]

Initially, transitions from yandex organics are recorded as referral traffic (yandex.ru / referral). In GA, you can change source / medium with filters in yandex / organic. But the SBJS library only allows you to rename the source

referrals: [ { host: 'yandex.ru', medium: 'organic', display: 'yandex' } ]

However, the traffic type still remains referral, which is why if the user already has an open session at the moment, the referral source will not overwrite it and the previous source will remain.