Creating a Filter in GA to track Parent Category
-
I don't know if the title makes sense, but here's my question...
Our newspaper website has multiple categories like World, Sport, Entertainment etc. Now, a story, belonging to the entertainment section maybe published on the entertainment page but is likely to have a slot somewhere on the Home page as well as other pages. The same goes for stories in sport etc. However, the url displays the date folllowed by the post title and thats it, no category name.
Now, a user may end up going to a detailed story that belongs to the entertainment section (from the home page or any other page) without actually having visited the entertainment page. However, for tracking purposes, we want to see how many hits we got on the entertainment page and any story belonging to that particular section. So, my question is how do I go about creating filters that can help me track category page and detail story hits as one? Or, should I ammend the url structure (keep in mind we are using wordpress for our news website) to include category after the date and would this solve my problem of tracking?
I asked a similar question recently but maybe I did not explain myself clearly.
Thanks!
-
Your answer raises many more questions!
-
Hi Rishad,
CustomVars are your best friend for this : http://code.google.com/apis/analytics/docs/tracking/gaTrackingCustomVariables.html
Right before calling trackPageView, set a custom variable (with a page-level scope, which is the level #3) to store the category of the story :
_gaq.push(['_setCustomVar',
1, // This is the slot number. Read the doc for this, since you only have 5 slots available.
'Category', // This is the name of your custom variable.
'Sports', // This is the value of your custom variable.
3 // This is the scope. Use the page-level scope for your use case. Read the doc to fully understand this.
]);
_gaq.push(['_trackPageview']);You will then be able to create a report using this new custom variable to count the number of visitors and pageviews per category.
Hope this helps,
J.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Google analytics suddenly stopped tracking all my landing pages
Hey guys. I love the new update of GA. Looks so clean. So, of course, I was excited to see how my landing pages were doing. I went to behavior, all content, all pages. And I noticed it's only showing me 19 pages out of the 93 I have indexed. And none of the top ones at all! Can't find them anywhere in GA! Anyone seen this before? Thank you so much
Reporting & Analytics | | Meier0 -
Filter Tracking works fine at staging site but not on LIVE site why?
Hello Expert, For my ecommerce site I want to track filter url's like price range, size, width, color etc and fully filter url should display in google analytic. I have implemented filter tracking at staging server and it works perfectly but on LIVE site it not show me full filter url. Do you guys think any parameter which i have configured in search console affect this? Note - I have configured in this way - http://webmasters.stackexchange.com/questions/93008/how-to-track-a-product-filter-in-the-product-list-view-with-google-analytics My filter url's are given below. And in search console I have configure two parameters. 1) effect - Sort, Crawl - No urls 2) FT - effect- ( - ) , crawl - Let google bot decide. But as per me this parameter is for crawling should not affect tracking right? mysite.com?FP=0&filtSeq=Price&Sort=BS
Reporting & Analytics | | adamjack
mysite.com?FT=7581&filtSeq=Type&Sort=BS
mysite.com?FT=1042&filtSeq=Colour&Sort=BS In robot file nothing is block. In analytic it showing me url till mysite.com only where as in staging it shows me full filter url. Thanks!0 -
How to Configure & Tracking Images in Google Analytic?
Hello Experts, Can anyone tell me for my eCommerce site how to configure images tracking in google analytic? And where can I see the image traffic in google analytic? Not sure I am asking correct question but confuse about image traffic. Thanks! Wrights!
Reporting & Analytics | | wright3350 -
Subdomain tracking in GA
Hi Moz community. Wonder if you could help us out with a baffling Analytics issue. Are there any reasons why the _setDomainName() function in Google Analytics wouldn't track across subdomains correctly? We have been seeing visits to a subdomain come up as referral traffic, even after implementing the right tracking code. Would be interested to hear everyone's thoughts on this. Thanks in advance.
Reporting & Analytics | | mrdavidingram1 -
Switching Google Analytics from Urchin to GA
I want to finally make the switch from Urchin to GA in Analytics, but the Google support page is no longer working (I realize I'm late to this so they likely took it down/moved it to where I can't find it). I've been searching on Google but can't find a straightforward guide to changing that won't disrupt my data. Anyone have a link to a working guide, or can you provide some guidance?
Reporting & Analytics | | Axios_Systems0 -
How to filter pages in Analytics by multiple criteria
Hello, we have several pages with the same page title. Now out of all those pages I want to pick two. Let's call them "/page1" and "/page2". For those pages I want the following information (combined for both): Avg. time on page, Bounce rate, Navigation Summary Normally I get all the information under "Content" "Pages" and by choosing the "page title" as primary dimension and clicking on the respective page title. Let's call it "page | title". Choosing the filter for 1 page works fine (I just enter "/page1" in simple filter). But how can I filter for two pages ( entering " include page ends with /page1 and include page ends with /page2" in the advance filter will show 0 results). Thanks in advance
Reporting & Analytics | | guitarslinger0 -
Track shopping cart abandonment?
We have an e-commerce site, and we use Google Analytics. We have created a "sales" goal + the funnel. Our funnel has the following structure: shopping cart - register - login - address - shipping - payment method - confirmation - sales This helps us track "goal abandonment". But we're also interested in tracking "shopping cart abandonment". For example we can see that 100 visitors enter the shopping cart, and 80 of them proceed to register or other steps in the funnel. This means that 20% left the car (shown by a red arrow in Google Analytics). Is there other way to see how many people left the shopping cart without proceeding to any of the other steps in the funnel, for example, people that closed their browsers or went to a page in the site not included in the funnel? I know I'm missing something here... Thanks!
Reporting & Analytics | | gerardoH0 -
Is there any way to see how one my keywords ranked historically before I started tracking it?
Hello there! I'm in need of some historical data on some keywords as they relate to my site. Basically, I'd like to track which events have had the most impact on moving me through the rankings, but I wasn't using Moz at the time I had made some changes to my website... Is there any way to see how I ranked for a particular keyword at a given point in time? Thanks! Gene
Reporting & Analytics | | BGroup0