Reply
Highlighted
Occasional Visitor
Posts: 2
Registered: 2 weeks ago

How do you validate and troubleshoot your Tags on Single Page Applications or CWA pages?

We have many urls which are single page applications or CWA journeys. For example: if there is a product journey for credit cards, only after filling up all the necessary steps and form details can we navigate to the application approval or application confirmation page. 

My question is how can we validate and troubleshoot whether doubleclick tags are working fine on these types of journeys without really filling up the form and hit submit. The problem here is that unless we navigate to the exact joruney URL we are unable to check the tag config or test the tag firing through Tealium Webcompanion or Chrome Developer tools. Is there any other way to check this?

Also we don't have a stagging environment. 

 

Reply
0 Kudos
Occasional Contributor
Posts: 120
Registered: ‎12-11-2015

Re: How do you validate and troubleshoot your Tags on Single Page Applications or CWA pages?

Hi @Anasooya,

Typically in a single page application that's expected to fire multiple tags, those tags will have either load rules or dynamic lookup values scoped to data layer variables as opposed to being URL based as per traditional site tags.

The easiest way to test specific points in the journey without navigating to them would be to simulate the contents of the data layer expected at that point. So for example, if you had a credit card journey and you wanted to check that your tagging configuration for the "customer declined" page is correct, you could open the JS console and run the following:

utag.view({
  JourneyName: "applyccc",
  JourneyStep: 4,
  JourneyAction: "Credit Decline",
  ApplicationState: "Declined"
});

Or equivalent. You would then be able to validate that the tags you'd expect to see fire on the decline page are indeed firing.

The trick of course is to ensure that you have the precise spec for what data should be present in the datalayer on the decline page, but arguably if you don't have that then you wouldn't have been in a position to set up the tags in the first place - one assumes that if you're testing that you've configured everything correctly, then your starting point was having a spec to build load rules / lookups from.

In terms of validating that the contents of the datalayer matches what's in the spec for a given page in a journey, arguably that falls to the developers and the team that define the data requirements - nobody should be asking you to add tags to a page until it's been validated that it's generating the right data.

Hope that helps.

Occasional Visitor
Posts: 2
Registered: 2 weeks ago

Re: How do you validate and troubleshoot your Tags on Single Page Applications or CWA pages?

[ Edited ]

Thanks for your suggestions @UnknownJ

I am fairly new to tealium and tag management so not sure where to open the JS console to run the program. Is it the console option in the  Chrome browser when we select Inspect button? Any chance you can provide screenshots of the steps you have suggested. I am not sure where to run the program and how to validate that the expected tags are indeed firing.

Reply
0 Kudos