Skip to main content

Using Autologin With ClickBank

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 ClickBank purchases.

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

Important

When using autologin with ClickBank, for a validated URL, ActiveMember360 will create/update a contact in ActiveCampaign as required. This includes the creation and storing of a password in ActiveCampaign if one does not already exist.

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. The other WordPress user settings will be as detailed within Default WordPress User Settings.

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 ClickBank 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 the ActiveMember360 Autologinmodule 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 ClickBank account.

  2. Navigate to Vendor Settings, My Site.

  3. Scroll to the Advanced Tools section and click Edit in the top right of that section.

    Steps to configure Secret Key for ClickBank

  4. Ensure both Encrypt Transaction URLs and Encrypt TEST Transaction URLs are NOT checked.

  5. Copy or define the Secret Key. It can be upto 16 alpahanumeric charcaters in length but must be in upper case.

  6. Click Save Changes

    Steps to configure autologin for ClickBank

  7. Within WordPress navigate to ActiveMember360, Modules, Autologin and paste the Secret Key from step 5 into the ClickBank, Secret Key

  8. Click Save Settings.

  9. Within Clickbank navigate to Vendor Settings, My Products.

  10. Edit the required product and navigate to Pitch Page & Thank You Page.

    Steps to configure ClickBank product delivery

  11. In the Thank You Page URL input area enter your autologin URL. See Examples for example use cases.

  12. Click Save & Exit.