by Dave | activecampaign
Active Campaign tag count. We’re going to figure out a way to track tags that begin with something. So to do. So you have to create a custom field for each tag that you want to count, the custom field name needs to be in the format name space count. So for instance, if you’re tracking tags that begin with the word customer, it would be customer account has your custom field will use a web hook inside an automation that will update those custom fields. And you will install that web hook script on your site. And there’s a link to get the code.
So let’s dive right in. Inside your Active Campaign account, you want to create an automation and all it needs to do is connect to a web hook on your server doesn’t matter how it occurs, my recommendation is, every time a tag of interest is updated. In other words, it’s added or removed, you’re going to want to run this automation. And that’s it.
Now as an example, I want to track the customer tags. And notice there’s four of them, customer, customer, and active customer membership and customer inactive. Also without the dash. One thing to note, this is capitalized that’s different than these other three, we can handle both scenarios.
And to do so we want to go into here, we want to go to lists, managed field, create a new custom field, it’s a text input, and we’re going to call it remember customer count. And there’s also another tag I want to track. So it’s going to be called micro micron count. Now, let’s go ahead and look at this contact. And I’ll show you the tags that this person has customer account. micron count is nothing. So there are three customer tags. This one’s different than these two, and then one micron tag. So the first time I run this automation, I’m going to say insensitive to capitalization. So it should pick up all three along with one for micron.
So there it picked up all three customer tags, 123 and the one micron. Now I’m going to change case insensitive to know, and I’m going to run it again, customer account is now to because it’s not including customer is including these two customer tags. Let’s take a look at the code. So you’re going to want to copy this these two pieces of information you will get from the settings and your account, the API key and the API URL. And then you’re going to want to set this either yes or no.
If it’s Yes, it will pick up anything that matches whatever you’ve specified for regardless of capitalization. You’ll also want to define the tags that you want to capture so anything that begins a tag that begins with customer for instance customer customer dash and active will get caught and then but active customer will not and then micro doesn’t matter how many you haven’t here or how few they just need to be comma separated you can put them on the line and then surrounded by double quotes everything else down below here you don’t need to touch so that’s how we can track tag towns in Active Campaign.