Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Charts still not appearing in report pages #371

Closed
scandella opened this issue Mar 8, 2023 · 21 comments
Closed

Charts still not appearing in report pages #371

scandella opened this issue Mar 8, 2023 · 21 comments
Labels
question Further information is requested

Comments

@scandella
Copy link
Contributor

Hi,
Using Campaign 2.5.5 with Craft 4.3.10, charts are nowhere to be seen in the report pages.
Also, the active contact list is empty even if the stats show some contact activity like "Read" or "Click".
I'll be happy to send any log that can help you help me.

Thanks.

CleanShot 2023-03-08 at 15 51 04
CleanShot 2023-03-08 at 15 54 56

@scandella scandella added the question Further information is requested label Mar 8, 2023
@bencroker
Copy link
Collaborator

Just to be sure can you please double check that you’re running Campaign 2.5.5 and perhaps clear the caches to make sure everything is updated?

@scandella
Copy link
Contributor Author

Hi,
I can confirm that the plugin version is 2.5.5.
I've just re-cleared the caches and the issue is still there. On both local and production environment.

Best,

@bencroker
Copy link
Collaborator

bencroker commented Mar 8, 2023

It looks like the stats are out of sync as a 104% open rate makes no sense. Can you try running the following command locally and then check what changes in the report page?

php craft campaign/reports/sync

@scandella
Copy link
Contributor Author

Ok, I've just run the command and now the stats are almost empty.
Still no graph.
CleanShot 2023-03-08 at 16 34 31

@bencroker
Copy link
Collaborator

bencroker commented Mar 8, 2023

Ok, so now it explains why the chart is empty, since there were no actual opens. Did you pull only some database tables down from production or any clues as to why things got so out of sync?

@scandella
Copy link
Contributor Author

I have no idea!

I've just send two new campaigns with the same newsletter to my self, so now I can see my two "read" in the stats, but still no graph and the contact activity list is still empty.

Should I send you the database?

CleanShot 2023-03-08 at 16 56 26

@bencroker
Copy link
Collaborator

Before you do, can you check the browser console for errors?

@scandella
Copy link
Contributor Author

Seem to me that there is nothing relevant in the browser console log. Just one 404 error to a CSS assets folder. Nothing else appears.

@bencroker
Copy link
Collaborator

In that case please do send a copy of your database and composer.json file to info@putyourlightson.com and I’ll take a closer look.

@bencroker
Copy link
Collaborator

I replicated your setup locally and ran php craft campaign/reports/sync. The campaign now has zero opens, which explains why no chart is displayed. If you open the report for the one campaign that does have opens (/admin/campaign/reports/campaigns/181349) then the chart appears. Can you please confirm this on your end?

@scandella
Copy link
Contributor Author

Ben,
I confirm you are right for this particular campaign.
But I just did the following action: create a new newsletter, create a new campaign with this newsletter, send it to myself, check the report: the chart does not show, although the "click" and "read" are set to one. Also, the active contact list is empty even if the stats show one contact activity.

@bencroker
Copy link
Collaborator

Hmm, have you by any chance enabled anonymous tracking via the enableAnonymousTracking config setting? If so then Campaign will not track individual opens and clicks.

@bencroker
Copy link
Collaborator

bencroker commented Mar 9, 2023

I’m almost certain that enableAnonymousTracking is causing the issues you are experiencing, which points to a few possible approaches to improving the user experience when anonymous tracking is enabled.

  1. Unlink those stats so that the empty page cannot be reached. The campaign/reports/sync command needs to be tweaked in this case, so as to not clear out the stats when run.
  2. Keep the records of opens and clicks, but remove the association with specific contacts.
  3. Keep the records of opens and clicks, as well as the association with specific contacts, but redact the contacts in the reports.

My initial feeling is that approach 2 would be best, since it preserves the most data yet maintains true anonymous tracking, and also resolves the campaign/reports/sync command issue. But I’ll explore this in a bit more detail before making a decision and implementing.

@scandella
Copy link
Contributor Author

Hi Ben,
Thanks for your answer.
You are right, "enableAnonymousTracking" was on.
Set it off display the graph and the detailled data for the new campaigns.
I agree with your solution #2, and maybe display a message "No data available because of the anonymous tracking settings" at the graph emplacement.
Also, maybe the wording of the settings itself should be more precise, something like: "enabled this settings will reduce the data available for tracking".
Anyway, no bug here, it's a feature!

Best,

@bencroker
Copy link
Collaborator

Yes, thanks for your thoughts, I’ll improve this for the next release.

@bencroker
Copy link
Collaborator

I ended up going with approach 1 in addition to messaging and various improvements in cdbe36b, for the next release. Thanks again for reporting this!

@scandella
Copy link
Contributor Author

scandella commented Mar 26, 2023 via email

@bencroker
Copy link
Collaborator

Excellent! There’s also #366 which would be good to have finished and merged for the 2.6.0 release.

@scandella
Copy link
Contributor Author

scandella commented Mar 26, 2023 via email

@bencroker
Copy link
Collaborator

That’s a reasonable request, please create a new GitHub issue for it.

@bencroker
Copy link
Collaborator

Released in version 2.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants