Is there a way to get the build version number and add it to a variable or data element?
What I am trying to accomplish is to have the build version (and maybe environment [Dev/Staging/Prod] as well?) available to print out in console.log when a page loads for easy debugging.
Is there an existing hook I can grab onto somewhere?
There are two global variables you can use for this purpose:
contains the full path of the utag.js file e.g. //tags.tiqcdn.com/utag/yourcompany/yourprofile/prod/utag.js or
contains the timestamp of the last published version, and that corresponds to the time you can see in the versions tab in the user interface.
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.