- TLC Home Home
- Discussions Discussions
- Documentation Documentation
- Knowledge Base Knowledge Base
- Education Education
- Blog Blog
- Support Desk Support Desk
06-07-2023 10:49 AM - edited 06-07-2023 10:49 AM
We have a page which moved from monolith to spa recently. Once after the migration, we not seeing the view call firing resulting in no adobe server call.
The default view call won't fire on SPA page? Should I ask the app team to fire the utag.view?
If the defalut view call will fire on SPA, then how can I debug?
Thanks,
Jay
Solved! Go to Solution.
06-08-2023 01:31 PM
In a Single Page Application (SPA), after the initial page load, additional content changes or page transitions don't trigger a traditional page load. Instead, these changes typically occur dynamically via JavaScript. So, by default, analytics tools including Tealium won't automatically track these changes like they would in a traditional, multi-page website.
To track these changes, you'll need to manually fire utag.view() or utag.link() when these dynamic changes or user interactions occur. You should coordinate with your development team to call these functions at the appropriate times in your SPA.
Here's a sample code snippet for firing a utag.view:
utag.view({ page_name : "new page", page_category : "category of new page", //any other variables you want to set });
To debug this, you can use browser developer tools. In the console, you can see when utag.view() or utag.link() are called and check the data that's passed in those calls. Additionally, you might want to use tools like the Tealium Tools Chrome extension or the network tab in the browser developer tools to monitor network requests to Tealium and Adobe servers.
Make sure to review Tealium's best practices for SPAs and consult your Tealium implementation team to ensure proper setup and tracking.
06-09-2023 07:27 AM
Copyright All Rights Reserved © 2008-2023