Skip to content

Content reports: don't show option to view table with all columns #16505

@twi123

Description

@twi123

Matomo 3.14.1

Content Interactions not shown in UI report, but clearly visible via API requests (or during the creation of a segment based on User Interactions with content)

Steps to reproduce:

  1. setup counter for site
  2. go to your site and open js console
  3. call _paq.push('trackContentImpression','PublicationOne','PublicationText', 'https://example.com/news/123'); in console as many times as you wish
  4. notice to passing requests to index.php with c_n, c_p, c_t parameters
  5. go to Matomo interface (Dashboard for selected Site -> Visitors log) and see this "user activity" (as content impressions)
  6. now back to console and call _paq.push('trackContentInteraction','click','PublicationOne','PublicationText','https://example.com/news/123'); few times
  7. notice to passing requests to index.php with c_i, c_n, c_p, c_t parameters
  8. switch back to Matomo interface (Dashboard for selected Site -> Visitors log) and see this additional "user activity" (as content interactions)
  9. now go to Behavior -> Contents -> Content Names for current date

And notice that we have counted content impressions but empty content interactions.
Anyway if we click on "Export this dataset in other formats" and choose some format for export (like HTML for example), we get a nice table WITH CORRECT nb_interactions numbers!

For example:

/index.php?module=Contents&action=getContentNames&idSite=6&period=day&date=2020-09-30&segment=&showtitle=1&random=4231
and I got this:

Content Name Visits Unique visitors Actions Actions per Visit Avg. Time on Website Bounce Rate Conversion Rate
Вася опубликовал новость от 13.13.2013 50% 3 50% 3 - - 0s 0% 0%
Публикация 50% 3 50% 3 - - 0s 0% 0%
Totals 100% 6 100% 6 - - - - -

Note on empty "actions" column

But with this /index.php?module=API&method=Contents.getContentNames&idSite=6&period=day&date=2020-09-30&segment=&format=HTML&token_auth=...
i got this:

label nb_uniq_visitors nb_visits nb_impressions nb_interactions interaction_rate _metadata _idSubtable
Вася опубликовал новость от 13.13.2013 3 3 6 11 183.33% 'segment' => 'contentName==%D0%92%D0%B0%D1%81%D1%8F+%D0%BE%D0%BF%D1%83%D0%B1%D0%BB%D0%B8%D0%BA%D0%BE%D0%B2%D0%B0%D0%BB+%D0%BD%D0%BE%D0%B2%D0%BE%D1%81%D1%82%D1%8C+%D0%BE%D1%82+13.13.2013' 1
Публикация 3 3 5 6 120% 'segment' => 'contentName==%D0%9F%D1%83%D0%B1%D0%BB%D0%B8%D0%BA%D0%B0%D1%86%D0%B8%D1%8F' 2

Note on nb_interactions column (nevermind of too much interactions -- result of manual _paq.push('trackContentInteractions'...) calls via js console for testing purposes)

As I can see, a call method getContentNames via module Contents returns different results with calling method Contents.getContentNames from module API.
Is it normal? Or I miss something?

Metadata

Metadata

Assignees

Labels

BugFor errors / faults / flaws / inconsistencies etc.Help wantedBeginner friendly issues or issues where we'd highly appreciate community's help and involvement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions