Module 'Advertising banners'
With this module you can easily post advertising units on your site.
To each advertising banner you can set the position, pages to display and type: image, html or javascript.
If you want to add a counter code (Google Analytics or Yandex.Metrika), you can use the following option::
In drop-down list of the field 'I want to place' choose 'Javascript code';
Choose 'Top-center' position;
In the list 'Pages' choose 'All pages'. Note, this point means all the pages, except for the pages that open in a modal window (e.g. in fancybox and others).
Finally you'll get something like this: