How to build an automated tracker that counts paid membership months? Answered
Hi Memberstack,
I'm trying to make a paid membership plan where paying members plant a tree for each month, and I want to create an automatic tree-counting system for the profile pages based on the amount of paying months. Is there a way to access this number and attribute it to a "tree counter" badge?
BTW - LOVE the platform, it's great!
N
Comments
2 comments
You can use Script #193 – Member Activity Timeline Tracker to log each successful monthly renewal as a “Tree planted” event, and then display a running history on the member’s profile. This makes the contribution journey visible (“Jan: 1 tree 🌱”, “Feb: 1 tree 🌳”) and lets you compute a tree total by counting timeline entries. It’s ideal if you want transparency and a chronological record of impact.
If your core goal is a badge or counter based on how long a member has been active (total paying months), Script #183 – Member Milestone Badges is likely a better fit. #183 can automatically award milestone badges (e.g., 3 months = 3 trees, 12 months = “Forest Builder”) and surface a “tree counter” tied to active duration without maintaining a detailed event log.
Best fit for a badge/counter: Script #183 (auto milestones based on active months).
Best fit for a visible history: Script #193 (timeline entries per renewal, plus a computed total).
Hi Nicklas,
To easily achieve this, you would need to use an automation tool like Make or Zapier.
These tools can monitor when a subscription is renewed and trigger an action to increment a count in the member's custom field.
Once the custom field is updated, you can display its content on your website by using the following attribute in your tree counter badge:
data-ms-member="[CUSTOM_FIELD_ID]".Please sign in to leave a comment.