Highlighted

Automated Testing w/ utag.Views

Silver Contributor
Silver Contributor
We've been trying to come up with ways to implement automated testing for our tags -- specifically those made with utag.view calls. Utag.view seems to accept a callback function, but it doesn't return any result about the status of the tag. I was hoping if there would be any way to leverage this to verify that a tag has fired. Are there any plans for enhancements to this function? Alternatively, does anyone have any tips/tricks for testing their tags on an automated basis?
1 REPLY 1
Highlighted

Automated Testing w/ utag.Views

Employee Emeritus

Steve Great question. The only general purpose solution to confirming a tag fired correctly is to watch the network traffic. While this solution is not true for all types of tags, it is the only solution that will work for all tagging vendors. This can be accomplished with a Google Chrome Extension or sending the data through a proxy server like Charles. Tealium is talking about product offerings around this topic. If you want more details, you should reach out to your Account Manager. Another topic you might want to look into is utagdb (utag debug).

 

Try typing the following into the Google Chrome Dev Console:

document.cookie='utagdb=true'

 

Then reload the page and watch the console Hope this helps.