Finding name of current view

In Ionic V3 I am using

for tracking the name of current view (Used for Google Analytics) but this seems no longer supported, so what is the proper way in Ionic 4 to find the name of the view (and thus not have to parse it around as a state variable)