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
Ask users to refer us to other friends #16803
Comments
@tsteur I have a question about this. I have a solution where I store the events (when it was closed, it was shared or not, etc) in the browser's localstorage. For sure it's not the perfect solution, if a user changing browsers or using incognito mode it won't work. Do you have any other recommendation? Like storing for the user in db? Thanks |
Hi @flamisz be great to store this in the backend instead of in the browser so it won't appear every time they go incognito etc. I was going to suggest we use the There is a I would actually for now simply store it in the option table similar to https://github.com/matomo-org/matomo/blob/4.1.0/plugins/Feedback/Feedback.php#L80-L93 and https://github.com/matomo-org/matomo/blob/4.1.0/plugins/Feedback/Controller.php#L37-L47 Compared to this example where it also uses the Does this help? I think that feedback reminder is quite a similar logic where we'd also need a controller method to update the value etc. It might help to check how the logic for that |
@flamisz fyi just created this new doc https://github.com/matomo-org/developer-documentation/blob/d70f5907d5f59f7bfc0744a002094af0cad7d5cb/docs/4.x/user-in-depth.md as part of https://github.com/matomo-org/developer-documentation/pull/427/files where I'm trying to summarise some thoughts on this. Once merged, it will be available under https://developer.matomo.org/guides/user-in-depth |
Thanks @tsteur very helpful indeed. I will implement this way and let you know if I have further questions. |
As I mentioned in #17581, "When someone clicks on the X icon on the right then we don't show it for another 6 months." should be "never", not "6 months". |
Not sure into which plugin to put this best. However, it needs to be disabled by WhiteLabel (eg through some event).
We'd basically show a block in the bottom similar to on our demo.matomo.cloud (might need to go incognito to see it)
(be great to give the social icons some white background or something so they stand out)
"Refer Matomo" is basically a "mailto" link that add's following subject:
subject:
message body:
The user can then customise the email in their email program and enter email addresses etc.
For social sharing we would use this text if possible:
can we have buttons for twitter, facebook, linkedin and mastodon? We would not actually load their JS etc but use the share links like https://www.facebook.com/sharer.php and https://twitter.com/intent/tweet and https://www.linkedin.com/shareArticle/ . Not sure it's possible for mastodon?
After clicking on any of the links and the desired action was initiated could we maybe show a thank you modal dialog saying like
Thank you for spreading the word and creating a safer web
?X
icon on the right then we don't show it for another 6 months.The text was updated successfully, but these errors were encountered: