-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
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:
- setup counter for site
- go to your site and open js console
- call
_paq.push('trackContentImpression','PublicationOne','PublicationText', 'https://example.com/news/123');
in console as many times as you wish - notice to passing requests to
index.php
withc_n
,c_p
,c_t
parameters - go to Matomo interface (Dashboard for selected Site -> Visitors log) and see this "user activity" (as content impressions)
- now back to console and call
_paq.push('trackContentInteraction','click','PublicationOne','PublicationText','https://example.com/news/123');
few times - notice to passing requests to
index.php
withc_i
,c_n
,c_p
,c_t
parameters - switch back to Matomo interface (Dashboard for selected Site -> Visitors log) and see this additional "user activity" (as content interactions)
- 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?