Working with Tags

#Overview

WP Fusion uses tags in your connected CRM to control access to content in WordPress, as well as track user activity and engagement, and trigger automated enrollments into courses and membership levels.

Note: Instead of tags, some CRMs call them lists, groups, or segments— but the functionality with WP Fusion is the same.

#Managing tags

When you first connect WP Fusion to your CRM, it will load a list of available tags, and these will be available to select in any of the Select Tag(s) dropdown boxes.

Screenshot of WP Fusion Course Settings interface showcasing CRM integration options. It displays options for tags like Course A Active, Course A Enrolled, Course B, and Course Complete. The Course A Active tag is currently selected, highlighting seamless tag management.
WP Fusion lets you apply tags in your CRM based on events in WordPress— in this case a LearnDash course enrollment.

#Refreshing the available tags

You can refresh the list of available tags at any time by clicking the Refresh Available Tags and Fields button in the WP Fusion settings.

Screenshot of WP Fusion Settings interface, showcasing tabs: General Settings, Contact Fields, Integrations, Import Users, Setup, Advanced, and Logs. A tooltip clarifies that refreshing wont alter user data or permissions. Seamlessly manage CRM integration without hassle.

Or from the admin toolbar.

A screenshot of a WordPress dashboard with the WP Fusion CRM integration menu expanded. It shows the option Refresh Available Tags & Fields highlighted. The sidebar includes links like Dashboard and icons indicating notifications.

Depending on your CRM, you may also see a prompt to resync the available tags in the Select Tag(s) dropdown, when no matches are found.

Screenshot of a user interface allowing tag application. In WP Fusions CRM integration, a dropdown menu shows New Tag being typed under Apply tags when purchased, with No results found: click to resynchronize below. Another field says Select tags under Apply tags when refunded.

Note that refreshing the list of tags does not update the tags for any individual users, trigger any enrollments, or affect any permissions— it just updates the dropdowns of available tags and fields.

#Creating new tags

With some CRMs, WP Fusion allows you to create new tags by typing their tag names directly into the dropdowns (for a list, see Create Tags in WordPress in the Compatibility Table).

Screenshot of a settings page for automatically creating contact records for new users in WordPress with WP Fusion CRM integration. Options include creating contacts in ActiveCampaign, assigning tags, and selecting lists. A checkbox is checked for automatic contact creation.
With many CRMs, WP Fusion allows you to type new tags into the Select Tag(s) dropdown, and they will be created in your CRM.

Note that this generally means the tag will be created when it is next applied— it won’t appear in your CRM as soon as you type in the name.

#Managing tags on users

You can view each user’s contact ID and tags in the WP Fusion section of their admin profile.

Screenshot of WP Fusion CRM integration interface displaying user details. Includes Infusionsoft Contact ID, tags like Lesson 1 Completed, and options to resync tags, push user meta, and pull user meta. Also shows login count, last login date, and time.
The WP Fusion section of the admin user profile allows you to manage their tags, as well as resync data with your CRM.

If the contact ID is missing or incorrect, or the user’s tags are out of sync with your CRM, you can click Resync Tags to look up the contact by email address and load the latest tags over the API. You can also click Edit Tags to manually add/and remove tags.

When you save the user profile, the updated tags will be synced to your CRM.

#Tags in the admin users list

By default, WP Fusion will display each user’s CRM tags as a column in the All Users list.

Screenshot of a user management interface displaying a list of users with columns for username, email, role, and Infusionsoft tags. Featuring WP Fusion CRM integration, it offers options for bulk actions and individual tasks like editing, deleting, and viewing.
The admin All Users list displays each user’s CRM tags, as well as a link to their contact record in your CRM.

If a user does not have a CRM contact ID, you will see (no contact ID).

Each user also has a link to View in CRM, which will take you to their contact record in your CRM.

#Hiding the WP Fusion columns

If you don’t want to see the CRM Tags column, you can disable it by clicking Screen Options at the top of the page.

A screenshot of a WordPress admin Users page highlights user details like username, email, role, and last login. With WP Fusion CRM integration, user alexking has the role of Subscriber tagged as New Customer. Pagination settings are at the top.

#Filtering users by tag

You can also filter your users by CRM tag by clicking the Filter By Tag dropdown, selecting a tag, and clicking Filter.

The Filter by Tag dropdown in the All Users admin list table.
The Filter By Tag dropdown allows you to filter your users by tag, or find users with no contact ID or no tags.

#Sync tags and user meta in bulk

You can resync contact IDs and tags for users in bulk by selecting one or more users, and then running a Resync Contact IDs and Tags operation from the bulk actions dropdown.

screenshot
WP Fusion allows you to perform bulk actions on users by selecting them in the admin users list.

From here you can also trigger a Push User Meta or Pull User Meta operation for the selected users.

#Syncing tags

Whenever a tag is applied by WP Fusion, it is immediately sent to your CRM over the API, and will appear on the user’s contact record.

Note that if a user already has that tag (based on the list of tags on their admin profile), then an API call will not be sent to reapply the same tag. This is for performance reasons, but it can be disabled by unchecking Prevent Reapplying Tags in the WP Fusion Advanced settings tab.

You can see tags being sent to and loaded from your CRM by viewing the activity logs.

If a tag is applied to a contact in your CRM, for example to unlock a piece of content, you’ll want to load it back into WordPress.

There are several ways to do this depending on your content strategy:

#Webhooks

Webhooks are the simplest method to ensure data is kept in sync bidirectionally (and in real time) with your CRM.

Screenshot of WP Fusion CRM integration Activity Log displaying entries with details like date, user, and message. Includes actions such as Loaded tags and Imported contact, alongside various identifiers and user information.
Webhooks allow you to load updated data and tags from your CRM in real time.

When configured correctly, a webhook allows your CRM to tell WP Fusion that data has been modified— for example a field has been edited, or a tag has been applied.

WP Fusion then connects back to your CRM to load the latest data, and it’s already available when the user logs in.

For more information about webhooks, and guides for each CRM, see the webhooks documentation.

#On login

WP Fusion can load a user’s tags from your CRM each time they log in to your site. To enable this, check the box for Login Tags Sync in the General settings.

Screenshot of a settings page titled Synchronize Contact Data, featuring WP Fusions CRM integration options. You can sync profile updates, login tags, and login meta data with Infusionsoft. Push and Login Tags Sync are selected, while Login Meta Sync is not.

There are two potential issues with syncing the tags on login:

  1. By default, WordPress users remain logged in for two weeks at a time. This means that a user’s tags might only be updated once every two weeks (unless they log out and back in again).
  2. The API calls to load tags can be slow. For example, Ontraport can take up to 20 seconds to load a user’s tags. This means your users could be left waiting for up to 30 seconds while they try to log in to their accounts (depending on your CRM’s API speed).

For these reasons, webhooks are preferable to syncing tags on login, since they happen in the background and only as needed.

#When access is denied

If you are protecting a piece of content via the WP Fusion meta box, you can check the setting for Refresh tags if access is denied to force-update a user’s tags from your CRM when they are denied access to a piece of content.

#Via a shortcode

WP Fusion includes a shortcode, [wpf_update_tags] that can update a user’s tags when the page containing that shortcode is viewed. For more information, see the shortcodes documentation.

#Via a URL

It’s also possible to trigger an update of a user’s tags and/or metadata using a special query parameter in a URL. The parameter is wpf-refresh, it can be used like:

  • https://mysite.com/page/?wpf-refresh=all: The user’s tags and metadata will be loaded from your CRM.
  • https://mysite.com/page/?wpf-refresh=tags: The user’s tags will be loaded from your CRM.
  • https://mysite.com/page/?wpf-refresh=meta: The user’s metadata and custom fields will be loaded from your CRM.

You can add a link to refresh the same page (i.e. the page the user is currently on) by simply using the query string as the destination for the URL. For example

<a href="?wpf-refresh=all">Refresh</a>

or in a visual editor, like so

Note that the user’s updated tags will be loaded from your CRM before their access to the destination page is checked. This means that the user can unlock previously-locked content by clicking the link (as long as they have the correct access tags in your CRM).

#Working with lists

Some CRMs supported by WP Fusion (like ActiveCampaign or FluentCRM) use Lists in addition to Tags as a way of segmenting subscribers.

In this case, lists are usually used like “mailing lists”— they are a way of sending your email newsletters to the correct audience.

With lists, subscribers can manage their own memberships (unlike tags). For example a customer can unsubscribe from one list, but continue receiving emails from another list.

For this reason WP Fusion has limited support for syncing with lists in addition to tags.

Because tags are used administratively, you wouldn’t want customers to be able to unsubscribe from a specific tag— as this might also cause them to lose access to courses, memberships, or other content.

This example ActiveCampaign automation updates a subscriber’s list membership when their language preference is changed in Weglot.

If you want to manage list memberships using WP Fusion, the best solution is to create an automation (or “workflow”, or “rule”) which is triggered when a tag is applied or custom field is updated, and then updates the subscriber’s list memberships accordingly.

Was this helpful?