Question
Page and view tracking with React/Adobe
I just to want to confirm if my current implementation is correct and gives accurate time metrics. In my React app on login, I use Adobe to track the user's id. Then for each of my page components, I add this code snippet and collect it into a dimension:
window._satellite.track('page-name', {
pageName: name,
});
Therefore, to track subview (child) components:
- Can I use the same snippet as above or will it interfere with overall page tracking? Would it be a better idea to create a new event/dimension called "Component Name"?
- I am slightly confused on the time metrics documentation. If I have Page1 and Page2, it tracks time spent from when user triggers Page1 event to triggers Page2 event? Therefore, if I were to also use "Page Name" for the subview components inside pages, it will throw off the time metrics?
Therefore, to track subview (child) components:
- Can I use the same snippet as above or will it interfere with overall page tracking? Would it be a better idea to create a new event/dimension called "Component Name"?
- I am slightly confused on the time metrics documentation. If I have Page1 and Page2, it tracks time spent from when user triggers Page1 event to triggers Page2 event? Therefore, if I were to also use "Page Name" for the subview components inside pages, it will throw off the time metrics?