What should I do during my PhD program to get a faculty position right after PhD, and how can I accomplish them? (Field: Statistics) I am starting my PhD next year (2019), and I have some concerns.

I recall one of my Professors from my undergrad years was telling me that in my field (statistics), excellent Statistics PhD graduates are taken for a tenure-track Research Professor job directly after their PhD without having to do any postdoc. And I am hoping that I can secure a tenure-track faculty position directly after my PhD, because I will be around mid-30s by the time I finish my PhD (i.e. if all goes well), and I would like to land a good career by then. 

What are the things that I should do during my PhD program to get a faculty position right after my PhD, and how can I accomplish them?

I will be taking my PhD in Statistics in Canada, but I want to get hired by research universities in US as a tenure-track Assistant Professor directly after my PhD, if I can.

Thank you,
Obtain experience teaching a variety of courses.
Develop a wide network in the field. The better "known" that you are, the more likely a school is to consider you for a faculty position.
Establish relationships with multiple people who will be able to write you strong letters of recommendation.
Begin applying for grant money right now. 
Publish relevant and impactful research.
Consign yourself to the fact that your friends in industry will make more money than you.
Get lucky and find a tenure-track position.