Here we will give an example of how to use a widget and its features to deploy code to do statistic reports.
1. Go to UI-> Widget-> Custom Widget and click Add to copy the code to it.
Click Save and this widget will show in a custom widget.
2. Go to UI-> UI-> Layout and add this custom widget to the footer of each page.
Select this custom widget from the drop-down list and you will see the code on the footer of all pages.