I am building a generic lightning component that could sit on an account or contact page to display related task data. However it would need to display slightly different data based on object page it is sitting on.
What is the best method to find out what page type a component is on?