Piwik+ codeigniter and referral urls


I installed piwik in my website that is using codeigniter…the tracking of visitor looks fine, but the referral is not working.
And yes, I tested it with different browsers and pc, but the logs only says “Direct entry”.
So I was wondering if there are issues with referral tracking for the combination of piwik+codeigniter…
Anyone have any experience on this?

Thanks in advance!

see Troubleshooting - Analytics Platform - Matomo