[memb_set_tag]
OTHER DOCS Available
Summary
When the page and shortcode loads, the shortcode applies or removes the specified tag IDs to the logged-in member’s ActiveCampaign record.
There won’t be anything visually displayed from this shortcode. You can use this to silently apply or remove ActiveCampaign tags when a member visits a certain page.
Shortcode Examples
The below adds two tags:
[memb_set_tag tag_id="312,432"]
The below removes a tag:
[memb_set_tag tag_id="-312"]
Shortcode Parameters​
tag (required): Comma delineated list of tags, negative numbered tags are removed, positive numbered tags are added.
Description
All tags in ActiveCampaign have a numerical ID that gets assigned to them when you created the tag. This ID is what needs to be used with this shortcode any many of our other shortcodes.
IDs are better than using the tag names due to the fact they remain the same even if you change the name of the tag later on.
Here is how you can find an ActiveCampaign tag ID:
- Open any page or post – even the existing page you’re working on.
- Go to the Memberium Content Protection Box and begin typing the tag name in the Require Tag IDs box
- The tag name will appear with the ID in parentheses next to it
- In the example below, the first tag ID is 387