Just to let you know that changing the trigger to pageLoad does seem to solve this issue, no need to create a custom HTML tag.
So if you are having issues try to switch to the pageLoad event: