SDE to Analytics. How to transition?

I have 3 years of SDE experience and am looking to transition into analytics domain. As suggested by many I should start with data analyst role. What is the best way to make this transition?

Also please note, I cannot make an internal switch as there is no dedicated analytics department in my company and the work culture is getting worse day by day.

Any insights or suggestions would be greatly appreciated!