Google Analytics (not set) - all pages

荒凉一梦 提交于 2019-12-13 00:55:18

问题


I have content grouping running on my webpage, the code is the next one:

  1. google analytics script
  2. 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!