Most read widget

Displays most read articles from Google Analytics.

This widget queries Google Analytics API to get the most read articles, and then matches them by url to the articles in Naviga Web and Open Content.

Widget can render as a list widget with a header, or as plain teasers in a board column. Output will be # top articles ordered by Unique Page Views in Analytics.

Any other urls in Analytics that are not articles in Naviga web will be ignored, like 3rd party integrations or start pages. The url in Analytics needs to be matched with the url in Naviga Web.

Usage

Create an instance of your widget in Boards > Board widgets for each specific site need.

  • The Google Analytics View ID specifies the data source to be used. You find it in Google Analytics admin.

  • Control the number of articles with Start from and Limit. You can use multiple widgets with same query but different Start from to split up your search result to different design or columns.

  • You must set the Teaser layout template to be used on each article when rendered by this widget.

  • If it's rendered as a list widget (see below) it will also get wrapping <ol> <li> tags and appropriate style. If not (see below) article teasers will just be rendered clean in your column as they are.

Render as list widget

Render clean widgets

See Article List for board usage example.

Last updated