Is it a report or anything like that, that could display a list of all tags together with a count of contacts with each tag?

  • what cms? took a quick look at d7 - views (with civicrm entity) gives me the count of tags - but without the tag name!
    – petednz - fuzion
    May 10 '20 at 20:44
  • CMS is Drupal 7
    – Flying
    May 10 '20 at 21:07
  • see answer below
    – petednz - fuzion
    May 11 '20 at 1:08

Not a report, but FYI the "Manage Tags" screen actually shows the usage count for each tag when you click on it:

enter image description here

  • Yes, I saw that, but I was looking for something that you by one look could get the overview of contacts with tag
    – Flying
    May 10 '20 at 6:22

In D7 this can be done use CiviCRM Entity and Views and Views Field Views

CiviCRM Entity can give us a View with the data from civicrm_entity_tag

but, there is no 'Relationship' that I can spot to the civicrm_tag table to get the name of the tag, hence you get a table with the Tag ID and the Count. Not so useful.

With views_field_view you can make another view based civicrm_tag to get the tag name, use the Contextual Filter of the tag id

then pull that View in to the first one and apply the same Contextual Filter and bingo you have your table of Tags with a count of entities using it.

PM me and I will zip you the views if you don't want to start from scratch.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.