AffiliateWP Automations
How to Add a Groundhogg Tag When an Affiliate Is Approved in AffiliateWP
Groundhogg funnels work best when contacts are tagged by who they are. To add a Groundhogg tag when an affiliate is approved in AffiliateWP, use Zapify's An affiliate's status changes trigger set to Active with the Add tags to a contact action. AffiliateWP and Groundhogg are Zapify PRO integrations.
What this automation does
The automation is one trigger plus one action:
- Trigger: An affiliate's status changes (
AFFWP_AFFILIATE_STATUS_CHANGED, AffiliateWP) - Action: Add tags to a contact (
GROUNDHOGG_ADD_TAG, Groundhogg)
When an affiliate becomes Active, Zapify applies your tag to their Groundhogg contact, creating the contact from their account if needed, and your funnel takes over.
PRO feature
AffiliateWP and Groundhogg are Zapify PRO integrations, so this automation needs an active Zapify PRO licence.
No Connection needed for AffiliateWP
AffiliateWP runs on your own site, so there is no API key to paste for it and nothing to set up under Settings → Connections.
No Connection needed for Groundhogg
Groundhogg runs on your own site, so there is nothing to set up under Settings → Connections.
Before you start
- AffiliateWP installed and active.
How to build the automation
Step 1: Create a new automation
- In the WordPress admin, go to Zapify → Automations.
- Click Add New to open the builder.
- Name it clearly, such as Tag approved affiliates in Groundhogg.

Step 2: Add the "An affiliate's status changes" trigger
- Click Add Trigger.

- Choose AffiliateWP as the app.

- Select An affiliate's status changes.

- Configure the trigger:
| Field | Required | What it does |
|---|---|---|
| Previous status | Yes | Leave on Any status, or pick the status the affiliate had before, such as Pending. |
| New status | Yes | The status that should start the automation: Active, Inactive, Pending or Rejected. |
Set New status to Active.
Step 3: Add the "Add tags to a contact" action
- Click Add Action.

- Choose Groundhogg as the app.

- Select Add tags to a contact.

Step 4: Configure the action
| Field | Required | What it does |
|---|---|---|
| Tags | One of the two | Pick one or more tags that already exist in Groundhogg. |
| Tag names | One of the two | Type tag names separated by commas. A name that does not exist yet is created, so the automation works the first time you run it. |
| Contact email | No | Leave empty to tag the user this automation is running for. |
For example, type Affiliate in Tag names. A tag that does not exist yet is created, so it works the first time. Leave Contact email empty to tag the affiliate who was just approved.
Step 5: Set the steps Live and save
Each trigger and action has its own Live / Off / Draft switch. A new automation starts as a Draft and does nothing until its steps are Live.
- Set the trigger and every action to Live.
- Click Save.

Step 6: Test it
Approve a test affiliate, then open their contact in Groundhogg and check the tag. Zapify → Logs shows the run too.
Tokens you can use
The trigger offers the affiliate's details, one extra token for the old status, plus the user tokens.
| Token | What it holds |
|---|---|
| Affiliate ID | The affiliate's numeric ID in AffiliateWP. |
| Affiliate status | Their status: active, inactive, pending or rejected. |
| Affiliate referral URL | Their personal referral link, ready to put in an email. |
| Affiliate payment email | The address they get paid at. |
| Affiliate rate / Affiliate rate type | Their commission rate and whether it is a percentage or a flat amount. |
| Affiliate earnings / Affiliate unpaid earnings | What they have earned in total, and what is still waiting to be paid. |
| Affiliate previous status | The status they had before the change. |
| User ID / Username / User email | The user the automation runs for: the affiliate, or the referred customer when Run for is set to the customer. |
| Display name / First name / Last name | Their name details. |
Conclusion
With the An affiliate's status changes trigger on Active and the Add tags to a contact action, your CRM knows who your partners are. To email the same people from MailerLite, see adding approved affiliates to a MailerLite group.
FAQs
Is this free in Zapify?
No. AffiliateWP and Groundhogg are both Zapify PRO integrations and need an active Zapify PRO licence. Neither needs a Connection.
Do I need to create the tag first?
No. Type its name in Tag names and Zapify creates it if it is missing.
Can I tag them differently when they are rejected?
Yes. Build a second automation with New status set to Rejected and a different tag.
Do I need to write any code?
No. Everything is configured visually in the Zapify builder.