3.7K members online now
3.7K members online now
Ask questions about filter set-up and issues with using filters in Google Analytics reports
Guide Me

Setting a filter for meta tag in reports

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Hi, I'm trying to set up a filter to track views of a certain set of pages, but the problem is that the only feature that distinguishes these pages from others on our website is a meta tag. The page url and title unfortunately contain nothing unique to the pages I want to track. Is there a way to set a filter to track only pages with a certain term in the meta tags?


For example, the tag I need to track looks like this:

<meta name="store:section" content="PURPLE DAISIES" />


1 Expert replyverified_user
Marked as Best Answer.
Accepted by topic author Company of B

Setting a filter for meta tag in reports

Rising Star
# 2
Rising Star



Well you have a couple of options.


If you do not need a separate view you can use content grouping which will let you define any group of pages.  If you know all the pages you want to track you can enter them in the page group setting.


That said, it sounds like you do want a view filter in which case you'll need to use custom dimensions.  Have a programmer dynamically set the custom dimension in the Google Analytics Tracking Code whenever the meta tag is present.  Alternatively this could also be done via code inserted via Google Tag Manager or by using data import.  Once you have the custom dimensions tracking, you can create view filters based upon them but you must create the filter in the view tree and not in the account tree to use custom dimensions ( I have no idea why  Smiley Happy ).




Content Grouping


Custom Dimensions


Data Import





Theo Bennett

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn