No adobe analytics call on page load - SPA

Gold Contributor
Gold Contributor

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

2 REPLIES 2

No adobe analytics call on page load - SPA

Gold Contributor
Gold Contributor

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.



shivam joshi

No adobe analytics call on page load - SPA

Gold Contributor
Gold Contributor
Thank you so much for the detailed explanation. It helps.
Public