Memberium is a powerful membership plugin for WordPress that integrates seamlessly with Keap (formerly Infusionsoft) and ActiveCampaign. One of its most useful features is the Math HTTP POSTs function, which allows you to perform mathematical operations within your automation workflows. This feature can be used to calculate expiration dates, adjust membership durations, and more.
In this guide, we’ll walk through how to use the Memberium Math HTTP POSTs function, including a real-world example of how it can automate membership expiration calculations.
Understanding Memberium’s Math HTTP POSTs Functionality
Memberium provides a variety of shortcodes and automation tools, including HTTP POSTs that let you perform mathematical operations within your CRM. With this functionality, you can:
- Add, subtract, multiply, and divide values.
- Determine maximum and minimum values.
- Generate random values.
This feature is especially useful for membership-based websites that need to automate calculations like subscription expiration dates.
Example Use Case: Automating Membership Expiration Dates
Let’s go through a practical example of how to use the Math HTTP POST function to set an expiration date for a membership.
Step 1: Preparing Your Custom Fields
Before using the Math HTTP POST function, you need to have at least two custom fields ready in Keap:
- Registration Date – Stores the date when a user registers.
- Expiration Date – Stores the calculated expiration date.
In our setup, we’ll use the Math HTTP POST function to add 12 months to the registration date and store it as the expiration date.
Step 2: Setting Up the Keap Campaign
- Trigger the Campaign: The automation is triggered when a user purchases a membership product.
- Set the Registration Date: Ensure the registration date is set when the user joins. This can be done using Keap’s Set Field Value function or an external tool like PlusThis.
- Apply the Math HTTP POST Function: Once the registration date is recorded, we’ll use Memberium’s Math HTTP POST function to calculate the expiration date.
Step 3: Using the Math HTTP POST Function
The Math HTTP POST function follows this format:
https://yourwebsite.com/?operation=setdate&auth_key=YOUR_AUTH_KEY&source=registration_date&target=expiration_date&function=+12months
Breaking Down the URL Parameters:
https://yourwebsite.com/
→ Your site’s URL.operation=setdate
→ Specifies that we’re setting a date value.auth_key=YOUR_AUTH_KEY
→ Your Memberium authentication key (found in your WordPress dashboard under Memberium settings → HTTP POSTs).source=registration_date
→ The field from which we’re pulling the base date.target=expiration_date
→ The field where the new expiration date will be stored.function=+12months
→ The mathematical operation (adding 12 months to the registration date).
Step 4: Running the HTTP POST Request
Once set up, the HTTP POST request runs when the campaign is triggered. This automatically updates the expiration date in Keap.
Step 5: Testing the Setup
To verify that the function works:
- Manually set a registration date for a test user.
- Trigger the HTTP POST request.
- Check the expiration date field to ensure it correctly reflects the registration date plus 12 months.
Additional Use Cases for Memberium’s Math HTTP POST Function
Beyond membership expiration dates, you can use this function for:
- Sending reminders X days before a subscription expires.
- Offering trial extensions by adding days/weeks to a free trial period.
- Automating special promotions, such as applying discounts X days before a renewal.
- Calculating milestone achievements based on a user’s progress date.
Final Thoughts
Memberium’s Math HTTP POST function is a powerful tool for automating date-based calculations within your membership site. By integrating it with Keap’s automation campaigns, you can streamline subscription management and enhance user engagement.
If you have any questions or need help setting up Memberium for your membership site, feel free to leave a comment below!
Tools & Plugins that used
- Memberium