matomo-org / plugin-MarketingCampaignsReporting

GNU General Public License v3.0
25 stars 19 forks source link

No campaign data on WordPress with the latest plugin release #111

Open mattmary opened 2 years ago

mattmary commented 2 years ago

Campaign requests are empty

When requesting %wordpress_url%?mtm_campaign=2022_grundrauschen_dresden&mtm_placement=google#/Verf%C3%BCgbarkeitspr%C3%BCfung, If I enable the campaign plugin and create a segment with campaign name = 2022_grundrauschen_dresden and campaign placement = google, I don't have any result.

Expected behaviour

See my visit in the visitor log after apply this segment.

step to reproduce

Context

WordPress Version | 6.0.2 Matomo Plugin Version | 4.11.0 Matomo Install Version | 4.6.0 Marketing Campaigns Reporting (Matomo Plugin) | 4.1.3 Firefox version | 104.0 (64-bit)

Full diagnostics report

` # Matomo

Endpoints

Crons

Mandatory checks

Optional checks

Matomo Settings

Logs

WordPress

WordPress Plugins

Server

Database

Browser

`

Let me know if you need additional detail.

mattmary commented 2 years ago

Sorry, made a mistake: Initially created this bug in a wrong repository https://github.com/matomo-org/plugin-Migration/issues/43

snake14 commented 2 years ago

@AltamashShaikh Unless you have objections, I'm just adding this to the list of issues to be prioritised.

AltamashShaikh commented 2 years ago

@mattmary I tried replicating the above issue

  1. Created 1 visit with above mentioned campaign and placement http://localhost.demo.com/?mtm_campaign=2022_grundrauschen_dresden&mtm_placement=google#/Verf%C3%BCgbarkeitspr%C3%BCfung
  2. Checked Visits Log for today and I can see the above visit with campaign and placement Screenshot from 2022-10-07 07-37-17
  3. Also tried creating a new segment as described and did a test Screenshot from 2022-10-07 07-37-06 Screenshot from 2022-10-07 07-36-55

All seems to be working for me as expected, can you check if the visits log shows correct placement and campaign without any segment ?

mattmary commented 2 years ago

Hello @AltamashShaikh When I've been able to reproduce this bug, I was in the WordPress plugin, not in Matomo: I had only the campaign parameter in the visitor log.

AltamashShaikh commented 2 years ago

@mattmary Ill check if its specific to WP

AltamashShaikh commented 2 years ago

@mattmary This seems to work in Wordpress too for me Request URL 'http://localhost.testwordpress.com/?mtm_campaign=2022_grundrauschen_dresden' Data in Matomo Screenshot from 2022-10-14 08-53-38

mattmary commented 2 years ago

Hello @AltamashShaikh

Sorry, but I can reproduce it: Here's what I get when I request https://wordpress.local/5.8/?mtm_campaign=2022_grundrauschen_dresden Screenshot from 2022-10-17 15-14-19

here's my system report:

` # Matomo

Endpoints

Crons

Mandatory checks

Optional checks

Matomo Settings

Logs

WordPress

WordPress Plugins

Server

Database

Browser

`

sgiehl commented 1 year ago

This might be related to L3-362