Skip to main content

Using Autologin With Digistore24

Overview​

The ActiveMember360 Autologin module allows validated purchasers to autologin to the WordPress ActiveMember360 site using an autologin URL as the Thank You Page URL for Digistore24 purchases.

Upon a successful login the user can be redirected to any desired location within the WordPress site.

Important

When using autologin with Digistore24, for a validated URL, ActiveMember360 will create/update a contact in ActiveCampaign as required.

ActiveMember360 will also create the user within WordPress if they do not already exist. The user will be created with a username matching that of their email address and the WordPress role as specified in WordPress, Settings, General, New User Default Role.

Usage​

The URL used for autologin is constructed using your site URL and parameters.

A sample of the URL structure required is as follows:

site_url/?mbr_autologin=my_security_code

Site URL & Parameters​

Site URLDescription
site_urlThe WordPress site URL where the user is to be automatically logged in. This can be found in WordPress, Settings, General, Site URL. It must be specified exactly as shown there.
Default: none.
Required: yes.
ParametersDescription
mbr_autologinSet to the security code used to validate an autologin. The security code used must be defined as detailed in ActiveMember360, Settings, Security, Security Codes.
Default: none.
Required: yes.
add_tagsOne or more tag ID's defined within ActiveCampaign to add to this contact during the auto-login process. If more than one is entered, please separate with commas. Tag ID's can be determined as explained in Determine ActiveCampaign Tag IDs.
Default: none.
Required: no.
remove_tagsOne or more tag ID's defined within ActiveCampaign to remove from this contact during the auto-login process. If more than one is entered, please separate with commas. Remove tags are processed before add tags. Tag ID's can be determined as explained in Determine ActiveCampaign Tag IDs.
Default: none.
Required: no.
assign_automationsOne or more automation ID's defined within ActiveCampaign to which the contact should be added during the auto-login process. To assign to multiple automations, separate them with commas. Automation ID's can be determined as explained in Determine ActiveCampaign Automation IDs.
Default: none.
Required: no.
remove_automationsOne or more automations ID's defined within ActiveCampaign from which the contact should be removed during the auto-login process. To remove from multiple automations, separate them with commas. Remove automations are processed before assign automations. Automation ID's can be determined as explained in Determine ActiveCampaign Automation IDs.
Default: none.
Required: no.
subscribe_listsOne or more list ID's defined within ActiveCampaign to which the contact should be subscribed during the auto-login process. To subscribe to multiple lists, separate them with commas. List ID's can be determined as explained in Determine ActiveCampaign List IDs.
Default: none.
Required: no.
unsubscribe_listsOne or more list ID's defined within ActiveCampaign from which the contact should be unsubscribed during the auto-login process. To unsubscribe from multiple lists, separate them with commas. Unsubscribes are processed before subscribes. List ID's can be determined as explained in Determine ActiveCampaign List IDs.
Default: none.
Required: no.
default_passA default password to be set for all users who do not yet have a password in their ActiveCampaign contact record.
Default: none.
Required: no.
redirSends the user to the URL of your choice after a successful login. To use URL parameters with the redirect URL please refer to Using URL parameters with the Autologin module redir parameter.
Default: none.
Required: no.
nofirstloginIgnore First login redirect specified in ActiveMember360, Settings, Login, Page redirect on first login.
Permitted values: Any value will ignore first login
Default: none.
Required: no.

Example Digistore24 Thank You Page URLs Using Autologin URL​

Important

In all examples my_security_code must be replaced by a security code defined in ActiveMember360, Settings, Security, Security Codes

You must ensure that you use the add_tags parameter within the autologin URL so that the ActiveCampaign contacts created by ActiveMember360 Autologin have the necessary contact data to permit access to your WordPress site and the desired content and/or autologin redirect URL.

This URL will add tag ids 123 and 456 to the contact and upon a successful login the user will either be redirected to the page with the slug product, or if it’s their first login to the page selected in ActiveMember360, Settings, Login, Page redirect on first login:

https://yoursite.com/?mbr_autologin=my_security_code&add_tags=123,456&redir=https://yoursite.com/product

Configuration & Settings:​

  1. Login to your Digistore24 account.

  2. Navigate to Account, Details.

  3. Scroll to the Thank you page settings.

    Steps to configure Thank You Page Key for Digistore24

  4. Copy or define the Thank You Page Key.

  5. Click Save

    Steps to configure autologin for Digistore24

  6. Within WordPress ActiveMember360, Modules, Autologin paste the Secret Key from step 4 into the Digistore24, Thank You Page Key

  7. Click Save Settings.

  8. Within Digistore24 navigate to Account, Products, Add/Edit Product.

  9. Edit the required product select Properties and navigate to Product Information.

    Steps to configure Digistore24 product delivery

  10. In the Thank you page input area enter your autologin URL. See Examples for example use cases.

  11. Ensure Encrypt data in thank you URL is set to No, transfer data in plain language.

  12. Ensure Append order data to thank you page URL is set to Yes.

  13. Click Save.