Skip to main content

mbr_log_event

Usage

This shortcode logs an event in the current remote user ActiveCampaign contact record.

The event name and value are defined as parameters in the shortcode, making it possible to define and log events within ActiveCampaign anywhere shortcodes can be used on an ActiveMember360 site.

Important

This shortcode is only available if the ActiveMember360, Modules, ActiveCampaign Tracking is activated.

More details about about event logging are detailed within ActiveMember360, Modules, ActiveCampaign Tracking.

Parameters

ParametersDescription
nameThe name of an ActiveCampaign event to be logged. If the event name has already been defined, it will be reused. If not, the event will be created during the event logging process.
Default: none.
Required: yes.
valuethe value to be logged in ActiveCampaign along with the event name.
Default: The current page/post permalink.
Required: no.

Validity

This shortcode is only processed for remote users i.e. logged in users who also exist as contacts within ActiveCampaign.

In all other cases, including WordPress users with the Administrator role nothing will be processed.

Conditional Branching

This shortcode does NOT support conditional branching with [ELSE_log_event].

Nesting

Shortcode nesting is NOT supported.

Examples

Logs an event with the name My Special Page with a value of the current page/post URL:

[mbr_log_event event='My Special Page']

API

Note

There is currently no ActiveMember360 API function equivalent for this shortcode.