matomo-org / matomo-org/plugin-GoogleAnalyticsImporter

After GA Import View Counts Discrepancy for Posts having a GOOD Count in GA

Open
#192 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
29
Forks
16
Avg merge
15h 12m
Merged PRs (30d)
14

Description

Hi,

We are on the LATEST Version of MAtomo.

We have a WP Multisite where we display View Counts and Top Viewed Posts in Sidebar. We have migrated from GA to Matomo for good. We used GAImporter and imported 3 months data (to NOT exhaust the GA API Limit threshold) daily until the entire data was imported.

After migrating from GA to Matomo; we have INVALIDATED and RE-PROCESSED data using CONSOLE Command (several times) . Now we are facing following issues:

  1. MANY Posts show Page Views = 0 even after GA has GOOD data for those Posts

Eg Post of couple of MANY Posts with this issue :

https://healthimpactnews.com/2020/the-path-of-resistance-is-a-lonely-one-whom-do-you-fear/
https://healthimpactnews.com/2020/robert-f-kennedy-jr-wants-investigation-on-potential-life-threatening-anaphylaxis-if-injected-with-modernas-covid-vaccine/

API Call : https://analytics.sophiamedia.com?module=API&method=Actions.getPageUrl&pageUrl=https://healthimpactnews.com/2020/the-path-of-resistance-is-a-lonely-one-whom-do-you-fear/&idSite=4&period=range&date=2020-10-25,2021-07-12&format=json&token_auth=some_token

  1. There are discrepancies in the COUNTS returned for a POST returned from Page Views and TOP Stories of the Week. Following are the API Calls we make to fetch respective results-

Eg Post : https://healthimpactnews.com/2021/urgent-5-doctors-agree-that-covid-19-injections-are-bioweapons-and-discuss-what-to-do-about-it/?delete-trans

For Page Views for a given POST = https://analytics.sophiamedia.com/?module=API&method=Actions.getPageUrl&pageUrl=https://healthimpactnews.com/2021/urgent-5-doctors-agree-that-covid-19-injections-are-bioweapons-and-discuss-what-to-do-about-it/&idSite=4&period=range&date=2021-04-25,2021-07-12&format=json&token_auth=some_token

For TOP Stories of the Week on Side bar : https://analytics.sophiamedia.com/?module=API&method=Actions.getPageUrls&filter_sort_column=nb_hits&filter_sort_order=desc&idSite=4&period=range&date=2021-07-05,2021-07-12&format=json&token_auth=some_token

You can see it on :
https://healthimpactnews.com/2021/urgent-5-doctors-agree-that-covid-19-injections-are-bioweapons-and-discuss-what-to-do-about-it/

We also checked the GAImporter logs to see if it logged URL's that are incompatible (as per the Matomo docs )

Not sure if this is a GA Importer BUG or a Matomo Bug. We need a resolution to this one ASAP as we are LIVE with Matomo and it is impacting our business.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the listed Actions.getPageUrl and Actions.getPageUrls API calls for the example posts, then review the GAImporter logs and the invalidate/re-process console workflow. Done means determining whether the discrepancy originates in the importer or Matomo processing and documenting a reproducible resolution for missing and inconsistent counts.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
analytics, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.