Hey Esteban,
You are correct that this is HTML code, but the only contents of the HTML is actually JavaScript. Everything between the <script> and </script> tags is the really important stuff here.
If we break it out it will look something like this:
document.write(unescape("script id='xxx_yyyyyy' src='" + (("https:" == document.location.protocol) ? "https://" : "http://") + "
www.host.com/scripts/trackjs.js'"));
PostAffTracker.setAccountId('default');
try {
PostAffTracker.track();
} catch (err) {
}
Now we've got to be careful with the "document.write" in this code. the doc.write function is synchronous and as a best practice Tealium recommends doing everything Asynchronous.
This snippet seems to just be a sample anyway because the file "
www.host.com/scripts/trackjs.js" doesn't exist, seems to be a dummy file.
If the two currently supported MediaMind tags do not meed the needs of the actual code snippet provided, I would reach out to your Account Manager to have one of our Solutions Engineers look through this with you. The "PostAffTracker.track()" function is a callback that needs to load after the trackjs.js file has loaded. This introduces one more level of complexity into the matter.