Quantcast
Channel: Support & Bugs - Matomo forums
Viewing all articles
Browse latest Browse all 5706

Matomo is storing unprintable characters in the database

$
0
0

We are experiencing a rather unexpected error. We are exporting the Matomo log tables in order to import them into Teradata. Basically everything is working as designed. We did however noticed one of the columns, matomo_log_action.name, containing no printable characters. For instance we found “-” to be replaced by “0xE20x960x92”. Tracing back what caused this in the export files we found that the error is present in the Matomo database. Here is a sample select from our database that shows the error:

SELECT a.name
-> FROM piwik_log_visit v
-> INNER JOIN piwik_log_link_visit_action va ON v.idvisit = va.idvisit
-> INNER JOIN piwik_log_action a ON a.idaction = va.idaction_url
-> LEFT JOIN piwik_log_conversion c ON c.idvisit = v.idvisit
-> WHERE v.idvisit = 558906438;

±--------------------------------------------------------------------------------------+
| name |
±--------------------------------------------------------------------------------------+
| belastingdienst.nl/wps/wcm/connect/nl/ondernemers/content/inloggen-voor▒ondernemers |
| belastingdienst.nl/wps/wcm/connect/nl/ondernemers/content/inloggen-voor-ondernemers |
| https://mijnzakelijk.belastingdienst.nl/onp |
| belastingdienst.nl/wps/wcm/connect/nl/ondernemers/content/inloggen-voor-ondernemers |
| belastingdienst.nl/wps/wcm/connect/nl/ondernemers/content/inloggen-voor▒ondernemers |
| belastingdienst.nl/wps/wcm/connect/nl/ondernemers/content/inloggen-voor-ondernemers |
| https://mijnzakelijk.belastingdienst.nl/onp |
| belastingdienst.nl/wps/wcm/connect/nl/ondernemers/content/inloggen-voor-ondernemers |
| belastingdienst.nl/wps/wcm/connect/nl/ondernemers/content/inloggen-voor▒ondernemers |
| belastingdienst.nl/wps/wcm/connect/nl/ondernemers/content/inloggen-voor-ondernemers |
| https://mijnzakelijk.belastingdienst.nl/onp |
| belastingdienst.nl/wps/wcm/connect/nl/ondernemers/content/inloggen-voor-ondernemers |
±--------------------------------------------------------------------------------------+

You may select the text “voor▒ondernemers” for inspection.

Obviously the URL belastingdienst.nl/wps/wcm/connect/nl/ondernemers/content/inloggen-voor▒ondernemers does not exist.
Instead I checked belastingdienst.nl/wps/wcm/connect/nl/ondernemers/content/inloggen-voor-ondernemers which works.

If I check what Matomo pixels are loaded I find our two trackers:

https://pwa001.belastingdienst.nl/piwik/piwik.php?action_name=Inloggen%20voor%20ondernemers&idsite=3&rec=1&r=161946&h=12&m=23&s=37&url=https%3A%2F%2Fwww.belastingdienst.nl%2Fwps%2Fwcm%2Fconnect%2Fnl%2Fondernemers%2Fcontent%2Finloggen-voor-ondernemers&_id=ff5f6ab71e1803c6&_idts=1599726147&_idvc=13&_idn=0&_refts=1611055345&_viewts=1611055345&_ref=https%3A%2F%2Fwww.google.com%2F&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=0&java=0&gears=0&ag=0&cookie=1&res=1536x864&dimension3=&cvar={"1"%3A["pageType"%2C"|bld-dv-content|"]%2C"2"%3A["filterTheme"%2C"|ondernemers|"]%2C"3"%3A["pageGoal"%2C"|niet_van_toepassing|"]%2C"4"%3A["pageAction"%2C"|not-chosen|"]}&gt_ms=39&pv_id=SKcwUI&fa_pv=1&fa_fp[0][fa_vid]=dbreHP&fa_fp[0][fa_fv]=1&fa_fp[1][fa_vid]=7yBo0y&fa_fp[1][fa_fv]=1&fa_fp[2][fa_vid]=v0OoZ3&fa_fp[2][fa_fv]=1

https://awa001.acc.belastingdienst.nl/piwik/piwik.php?action_name=Inloggen%20voor%20ondernemers&idsite=3&rec=1&r=917979&h=12&m=23&s=37&url=https%3A%2F%2Fwww.belastingdienst.nl%2Fwps%2Fwcm%2Fconnect%2Fnl%2Fondernemers%2Fcontent%2Finloggen-voor-ondernemers&_id=ff5f6ab71e1803c6&_idts=1599726147&_idvc=13&_idn=0&_refts=1611055345&_viewts=1611055345&_ref=https%3A%2F%2Fwww.google.com%2F&send_image=1&pdf=1&qt=0&realp=0&wma=0&dir=0&fla=0&java=0&gears=0&ag=0&cookie=1&res=1536x864&dimension3=&cvar={"1"%3A["pageType"%2C"|bld-dv-content|"]%2C"2"%3A["filterTheme"%2C"|ondernemers|"]%2C"3"%3A["pageGoal"%2C"|niet_van_toepassing|"]%2C"4"%3A["pageAction"%2C"|not-chosen|"]}&gt_ms=39&pv_id=A8PaGu&fa_pv=1&fa_fp[0][fa_vid]=dbreHP&fa_fp[0][fa_fv]=1&fa_fp[1][fa_vid]=7yBo0y&fa_fp[1][fa_fv]=1&fa_fp[2][fa_vid]=v0OoZ3&fa_fp[2][fa_fv]=1

It seems the tracker is sending the correct request with the URL correct. From all of this I gather somewhere in the process of registering the call into the database things go wrong and the URL gets distorted.

My question now is: Have you ever seen this error before? What can we do to fix it?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 5706

Trending Articles