Analytics
3.4K members online now
Understand information in your reports and troubleshoot reporting issues such as self-referrals, (not set) data, and inaccurate information
 
Guide Me
star_border
Reply

How can I view data based on a tag manager tag?

[ Edited ]
Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

I created a new variable in Tag Manager to get the body classes:

  • Name: Body Classes
  • Type: Dom Element
  • Method: ID
  • Element ID: blog-page
  • Attribute Name: class

 

Then I created a trigger that fires on page view when a specific class is associated to the body id

  • Name: MFA Blog Page - View
  • Event: Page View
  • Trigger Type: Page View
  • Fire On: Body Classes contains "blog-page"

I have the id and the body class the same. Finally, I created a tag to track this trigger:

  • Name: Blog Pages - View
  • Product: Google Analytics
  • Tag Type: Universal Analytics
  • Tracking ID: using my sites UA
  • Track Type: Event
  • Category: Blog
  • Action: pageview
  • Lable: {{Page URL}}
  • Fire On: MFA Blog Page - View

The goal is to be able to dig into my analytic data to view my blog pages. I can't put "/blog/" on my urls so this was how I planned on tracking them. I ran a preview/debug and the trigger is fired on page view.  How can I setup the GA to show data just for that tag? I think I need to create a new view and apply a filter to only show this event.

 

1 Expert replyverified_user

Re: How can I view data based on a tag manager tag?

Rising Star
# 2
Rising Star
Hey David,

Have you considered using a lookup table and virtual pageview (rename the blog pages to /blog/{{page path}}) for when it's a blog page?

Best,

Theo Bennett

Analytics Evangelist at MoreVisibility | Contact Me
Connect on LinkedIn

How can I view data based on a tag manager tag?

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭

This is an idiotic reply and doesn't answer the question. Where can you view the data in GA or wherever?

 

How can I view data based on a tag manager tag?

Visitor ✭ ✭ ✭
# 4
Visitor ✭ ✭ ✭

Can someone actually answer this question instead of giving inane advice about directory structure?