Usage:
This shortcode is used to assign or remove an ActiveCampaign contact to or from one or more automations.
It can be triggered in “autorun” mode, such as when landing on a page or upon a link or button click by the users.
This shortcode does NOT support conditional branching with [ELSE_automation].
Shortcode nesting is NOT supported.
Parameters:
cid | The ActiveCampaign contact id you wish to assign or remove from automations. Default: the current logged in ActiveCampaign contact . Required: no. If no, logged in ActiveCamaign contact’s id will be used. |
assign | One or more automation ID’s taken from ActiveCampaign you wish this contact to assign to. If more than one is entered, please separate with commas. Default: none. Required: yes, if automation(s) to remove are not passed. |
remove | One or more automation ID’s taken from ActiveCampaign you wish this contact to remove from. If more than one is entered, please separate with commas. Default: none. Required: yes, if automation(s) to assign are not passed. |
autorun | If set to yes, the shortcode will execute without waiting for user input. If not set to yes, it will generate a form and a submit button and wait for user input. If the autorun option is used, the other parameters will be ignored (link_text, link_style, button_text, button_image, button_style, redirect_popup, aftertext). Default: no. Required: no. |
link_text | The text that should be displayed for the link. Default: “Click here to submit”. Required: no. |
link_style | Any inline style you want to apply to the link. Default: none. Required: no. |
button_text | The text that should be displayed in the button. Default: none. Required: no. |
button_image | The HTTP/URL path to the image of your choice. Default: none. Required: yes, if button_text is not used. |
button_style | Any inline style you want to apply to the button image or HTML button. Default: none. Required: no. |
redirect | Sends the user to the URL of your choice after processing the automation. A special value can be passed, #reload#, to force a full reload of the current page. Default: none. Required: no. |
redirect_popup | Determines whether the user will be redirected to a new window after assigning/removing the automations or not. Only used if the “redirect” parameter is used. Default: none. Required: no. |
after_text | The text that should be displayed after the request has been processed, if the user hasn’t been redirected. Default: none. Required: no. |
Example:
Automatically assign the current logged in contact to an automation:
[mbr_automation autorun='yes' assign='12']
Automatically assign the current logged in contact to an automation and remove him/her from other automations:
[mbr_automation autorun='yes' assign='34' remove='90,92']
Automatically assign an automation to a specific ActiveCampaign contact, no matter if he/she is logged in or not:
[mbr_automation autorun='yes' cid='456' assign='12']
Assign the current logged in contact to an automation by clicking a link and display the after_text in place of the link:
[mbr_automation assign='12' link_text='Click here to submit' after_text='Thanks for clicking']
Assign the current logged in contact to an automation by clicking a link and redirect the contact to a specific page:
[mbr_automation assign='12' link_text='Click here to submit' redirect='http://example.com/my-site']
Assign an automation to a specific ActiveCampaign contact, no matter if he/she is logged in or not by click a button image and redirect the contact to a specific page, opened in a popup window:
[mbr_automation cid='456' assign='12' link_text='Click here to submit' redirect='http://example.com/my-site' redirect_popup='yes']