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

Force opt-in with specific email address #753

Open
xstefanox opened this issue Oct 25, 2024 · 6 comments
Open

Force opt-in with specific email address #753

xstefanox opened this issue Oct 25, 2024 · 6 comments

Comments

@xstefanox
Copy link

Description

By default, Freemius SDK asks the user to opt-in the first time the plugin page is loaded.
My users are required to opt-in, because I would like to not send them the license by email, and, most importantly, I would like my users to be registered with an email address that is not the WordPress admin email.

The reason for that, is that we already have a registration logic in place in our plugin and we would like our users to register on Freemius with the same email address they previously used to register to our service, in order to sync the 2 email addresses and simplify the user experience.

Describe the solution you'd like

I would like a configuration key to provide the SDK the email address that should be used to register my users on Freemius and another configuration key to silently opt-in my users without displaying the optin-page.

Describe alternatives you've considered

As an alternative, I considered prefilling the email address field in the purchase form in some way, but without success.

@Tobias-Conrad
Copy link

@xstefanox maybe you can use the change email function inside freemius.
email needs to be permanently changed otherwise on changes freemius sent other email address.
We stopped forcing opt-in and made it optional (60% opt-in rate) as WP.org requires the complete plugin working without opt-in. Also forcing with the wrong email address is bad when testing on tasteWP ect. and no emails are sent and the email address is not reachable because a tasteWP email address.

Why not use the current WP logged in user email address? (admin address only used when admin and logged in user is the same)

What would you like to do with them when not sent license?

We show the email address they are going to opt-in and link to user profile so they can change email before opt-in.
because after optin and not confirm or not able to confirm they stuck until fixer plugin is applied...

Take my answer like a super market take only what you need Stefan.

@xstefanox
Copy link
Author

WP.org requires the complete plugin working without opt-in

Our plugin already has a registration form to create an account on our servers; users are free to use the plugin without registration, accepting some limitations.
We just want to adopt Freemius in order to manage license selling, but we want to use our user registration form, possibly skipping the Freemius opt-in, because it's not needed in our scenario.

Why not use the current WP logged in user email address?

Upon registration in our login form, users are required to enter an email address that could be different from the one configured as WordPress admin email.
This is a requirements for us, becase our plugin is just one of the multiple frontends we are developing to access our API, which is meant to work also in a non-WP context.
When they register, they create an account on our systems and they could subsuquently use the same account on other frontends that are part of our platform, therefore we don't want to stick with the WordPress admin email, but we want them to be free to choose their preferred email address or even use social login.

maybe you can use the change email function inside freemius.

This means that users would be registered with the WordPress admin email and then we should silently change they're email address, right?
I would prefer to directly register them with the final email address, if possible.

Is this setup supported by Freemius SDK?
Can you provide a configuration example or at least a workaround to obtain what I described, please?

@xstefanox
Copy link
Author

@Tobias-Conrad do you have any suggestion?

@Tobias-Conrad
Copy link

@xstefanox i gave all I have and it was not helpful for you.

@xstefanox
Copy link
Author

maybe you can use the change email function inside freemius.

Sorry, but if this was the suggestion, it was not clear, that's the reason why I asked for a clarification here:

This means that users would be registered with the WordPress admin email and then we should silently change they're email address, right?

What do you mean by "changing the email"?
Is there a way to do this programmatically or do you mean changing it by hand on the Freemius dashboard?

I guess that if we can change the email address after the optin, this means that the email address is not strictly required to be the WordPress admin address, therefore, why not allowing the SDK to override the standard strategy used to determine the email address? For example with an email address received on SDK configuration or attaching a callback on some event.
Is there any event that we can attach to customize the email address?

Regarding skipping the opt-in:

We just want to adopt Freemius in order to manage license selling, but we want to use our user registration form, possibly skipping the Freemius opt-in, because it's not needed in our scenario.

Any suggestion about this?

@xstefanox
Copy link
Author

@Tobias-Conrad any feedback on this?

Adding @a-p-z @Gromdal @thevot to the conversation, since they are working on the same project and may be interested.

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

No branches or pull requests

2 participants