When you use Friendly Automate's website tracking, pages visited are stored in the "History" for each of your contacts:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c666573c-351e-4239-a257-ef9eae806dd1/Untitled.png

You can use this information to target contacts who are interested in certain topics or are at a certain point in their customer journey.

However, if you have a blog with a lot of content, this quickly becomes overwhelming. After all, you don't want to define the topics for thousands of individual pages in Friendly Automate.

Fortunately, good CMS systems like WordPress offer a remedy here. WordPress requires you to assign at least one category to each blog post. Furthermore, you can add as many tags as you want to each post in WordPress.

You can take advantage of this information in Friendly Automate.

By default, Friendly Automate's tracking code "only" captures the URL and title of a page. However, if you add a small code snippet to your WordPress theme, you will automatically capture the categories and tags from WordPress within Mautic.

Friendly Automate will then display them as "tags" for each contact:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/9166f965-b510-4475-a6a0-ff955191d7b0/Untitled.png

You can then use these tags to target contacts who are interested in certain topics. For this you can use the tag filter in segments:

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/46f05537-4720-4345-851e-6c52fef9c676/Untitled.png

Here you can now select the WordPress categories and tags of the blogposts your contacts have visited!

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/857cd0ab-c2c6-42de-b015-743cae9ea229/Untitled.png

How do you set up tracking of WordPress categories and tags?

You can set up this advanced tracking in two easy steps.

1. Make sure that the official Mautic plugin for WordPress is installed

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/48017adc-0656-4f37-8517-0b651704cf67/Untitled.png

Here you can find instructions on how to install the plugin:

How to use the WordPress plugin to add the tracking code for Friendly Automate and use shortcodes

2. Add the following code to your WordPress theme