I have reported this issue as a bug within DTM last year in October. At
that time, there was an issue with stage vs. production. In stage, the
variables from the custom code did not appear in the tags.The settings
in the template would be included in the tag, but nothing from the
custom code would be included. At the time it was identified as a bug
and a solution was released.I have seen many times where a solution has
been released for an issue only to 'disappear' in a later release.