Can you disable minification of your tealium javascript file for debugging purposes?

Bronze Contributor
Bronze Contributor

Hi, 

Sometimes I want to debug my tealium extensions and my custom tags. Is it possible to disable minification of your code or use source maps to debug your tealium script

5 REPLIES 5

Can you disable minification of your tealium javascript file for debugging purposes?

Moderator
Moderator
Hi @geoffrey_samper,

Yes, you can disable minification in the publish settings at the profile level:

Hit Save/Publish > Configure Publish Settings > General Publishing > Performance Optimization > Minify Tag Templates (Toggle Off).

This is generally unnecessary, however, as the "Pretty Print" option in Chrome and Firefox dev tools de-minify the files for you (look for the pair of curly braces {} in the bottom left of the dev tools panel in Chrome).

Craig.
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.

Can you disable minification of your tealium javascript file for debugging purposes?

Employee Emeritus

Hi @geoffrey_samper. To add to @craig_rouse's reply please see https://community.tealiumiq.com/t5/Tealium-iQ-Tag-Management/Publish-Configuration/ta-p/13632. Thank you. 

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.

Can you disable minification of your tealium javascript file for debugging purposes?

Moderator
Moderator
Thanks @kathleen_jo. I didn't have the reference to hand :-)
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.

Can you disable minification of your tealium javascript file for debugging purposes?

Bronze Contributor
Bronze Contributor

Can you disable this for example only on UAT and dev env and for Production is must be minified

Can you disable minification of your tealium javascript file for debugging purposes?

Moderator
Moderator
No, sorry @geoffrey_samper, this can only be done at profile level. To have an unminified version only on dev, you would need to:

1. Disable minification
2. Publish to dev only
3. Re-enable minification

Follow the steps above again each time you want to publish an unminified version of the files.

The best solution, however, is to use the built-in Pretty Print feature, which will de-minify for you.

Thanks,

Craig.
Check out our new Swift integration library for iOS, macOS, tvOS and watchOS: https://github.com/Tealium/tealium-swift with updated
documentation https://community.tealiumiq.com/t5/Swift/tkb-p/swift.
Public