Having Sync and Async Utag scripts on the same page

sriram_venkatac
Silver Contributor
Silver Contributor sriram_venkatac

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

sriram_venkatac
Silver Contributor
Silver Contributor sriram_venkatac

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

kathleen_jo
Employee Emeritus
kathleen_jo

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.
Highlighted

Having Sync and Async Utag scripts on the same page

sujani_koya
Gold Contributor
Gold Contributor sujani_koya