Code injection at the end of each article

Good day.
How correct inject code at the end of each article?
I am trying to put the widget code.
Thank you.