With this module you can easily post advertising units on your site.
If you want to add a counter code (Google Analytics or Yandex.Metrika), you can use the following option::
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: