Pathing is done server-side and not client-side. As long as you send
prop7 values on each server calls, you can run the prop7 pathing report
in Analysis Workspace and see a path report. You code seems to be right
but you will need to check in your developer tools in the network tab
that the Adobe Analytics call does contain the prop7 value as you
expect.