Adding a value per visitor (first session trafic source)

Hello,

I was wondering how i could track the first session trafic source of my returning visitors in piwik pro ?

Thank you,

Hi @LTS22,

You have this information available in attribution report, but if you want it as a custom session dimension, you’d have to create a cookie or use a local storage to hold this value on your own, then whenever this cookie is recognized in next session (you can check the Piwik PRO _pk_id cookie which can help you to recognize if it’s the first session or not) you should send custom session dimension.

Best,
Oliwer

1 Like

Makes sense ! Thank you for your reply.