问题
I have content grouping running on my webpage, the code is the next one:
- google analytics script
onloadevent function with this code:
var scatcms = $('ul.breadcrumb li:nth-child(2) a').text(); ga('set', 'contentGroup1', scatcms);
Now, this code is on the <head>
of every page.
When I go to analytics, I can see various categories, like "Mundo", "Lifestyle", ....
There is also a (not set), and this should contain, for example, the homepage, but what is happening is that it contains all the pages.
example:
Category - Mundo // Sessions - 1
Category - Lifestyle // Sessions - 2
Category - (not set) // Sessions - 10,427 ---> in this number there is pages from Mundo category, or lifestyle category, why don't they show up on their category?
来源:https://stackoverflow.com/questions/34873007/google-analytics-not-set-all-pages