Visitor/Customer Targeting Storage



Currently, the Targeting Data is store in Cookie which I want to change the storage to DB.
I’ve gone through with the documentation, which shows the way to change that, but I’m new in YML so wondering at where and how do change this code.

Also, I would like to know that can I change the DB or add some custom data into this.