[memb_set_tag]

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.

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:

  1. Open any page or post – even the existing page you’re working on.
  2. Go to the Memberium Content Protection Box and begin typing the tag name in the Require Tag IDs box
  3. The tag name will appear with the ID in parentheses next to it
  4. In the example below, the first tag ID is 387

Shortcode Attributes

Conditional: No (?)
Nestable: No (?)
Accepts formatting: No (?)
Capturable: No (?)