@ayuktanon In order to add a custom attribute to a tag you will need to use a custom container with a customized loader call. To do this, add the custom container to your profile and edit the template by pasting in the following:
(function (a, b, c, d) {
a = '//abc.xyz/123.min.js';
b = document;
c = 'script';
d = b.createElement(c);
d.src=a;
d.setAttribute('data-id', 'custom_tag');
d.type = 'text/java' + c; d.async = true;
a = b.getElementsByTagName(c)[0];
a.parentNode.insertBefore(d, a);
})();
Within this function you will set 'a' (your library URL to call) as well as the attributes you want created for this call (i.e. data-id, etc.).
As for the tag to be executed at the top of the body, this tag will fire in respect to wherever utag.js is coded into the page source. Best practice is to have utag.js added at the top of the body. If utag.js on your page is located somewhere else, the tag will be loaded in at that designated position.
Hope this helps,
Chris
... View more