Having Sync and Async Utag scripts on the same page

Silver Contributor
Silver Contributor

We are trying to test a particular sync tag (Maxymiser) on our site. We always have utag.js firing asynchronously on the site. Now to test the new sync tag, we have also included utag.sync.js on our site. Will this cause an issue (having sync and async utag scripts on the same page?

 

We edited the sync template and added the sync tag script to the template but we are seeing an error on the console and the tag does not seem to be working.

 

SyncConsoleError.PNGAny insights on what could be causing this?

3 REPLIES 3

Having Sync and Async Utag scripts on the same page

Silver Contributor
Silver Contributor

Please ignore the origina post or delete if possible. We found that the issue was with the utag.sync.js call (it was still async) and made it synchronous. We are seeing the tag now as expected.

Having Sync and Async Utag scripts on the same page

Employee Emeritus

Great job on troubleshooting this yourself @sriram_venkatac

Remember to give me a kudo if you like my post! Accepting my post as a solution is even better! Also remember that search is your friend.

Having Sync and Async Utag scripts on the same page

Gold Contributor
Gold Contributor
 
Public