Analytics
2.1K members online now
2.1K members online now
Dive into multiple domain (Cross/Sub) tracking, implementing Ecommerce and Enhanced Ecommerce, setting up Event tracking, and Universal Analytics code.
 
Guide Me
star_border
Reply

Content Grouping tracks only one page, other pages are missing

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭

Dear All,

 

Could anyone help? I am trying to group my content in the Content Grouping by using tracking code. I need to set up two main groups - "productPageView" and "productPageView-customer".

 

  1. I have created my first group with name"productPageView" inside "Content Grouping Settings" whose index is 1.
  2. I have created my second group with name"productPageView-customer" inside "Content Grouping Settings" whose index is 2.

I double confirmed that both are ON.

Here is my code. I added it to every page that I want to group.

 

    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-69718363-3', 'auto');
      ga('require', 'displayfeatures');

      ga('set', 'contentGroup1', 'productPageView');
      ga('set', 'contentGroup2', 'productPageView-customer');
      ga('send', 'pageview');

    </script>

Then it shows only one page in each content group. Content grouping does not track other pages. Figures are shown as below(Sorry about inserting links, inserting photos always fails):

http://7xrn7f.com1.z0.glb.clouddn.com/16-7-18/89178154.jpg

http://7xrn7f.com1.z0.glb.clouddn.com/16-7-18/22726121.jpg 

 

What I did wrong? I really added my code to every page that I want to group. But it just shows only one here. Any ideas please?

 

Many thanks,

J.Wu

1 Expert replyverified_user
1 ACCEPTED SOLUTION

Accepted Solutions
Marked as Best Answer.
Solution
Accepted by topic author Tiantaili P
July 2016

Re: Content Grouping tracks only one page, other pages are missing

Top Contributor
# 4
Top Contributor
I meant an example page containing grouping code to see whether there is a tracking issue
VP & Chief Evangelist at Hub'Scan | Contact me
Level 80 Digital Analytics Warrior, KPI Therapist and Keeper of the One True Tagging Plan

View solution in original post

Re: Content Grouping tracks only one page, other pages are missing

Top Contributor
# 2
Top Contributor
Hi do you have an example URL we can take a look at?
Also, did you define grouping as tracking, rule or extraction?
VP & Chief Evangelist at Hub'Scan | Contact me
Level 80 Digital Analytics Warrior, KPI Therapist and Keeper of the One True Tagging Plan

Re: Content Grouping tracks only one page, other pages are missing

Visitor ✭ ✭ ✭
# 3
Visitor ✭ ✭ ✭
Thanks so much for your reply!!

I defined grouping as tracking, and could you please tell me what kind of example you want to look at?
Marked as Best Answer.
Solution
Accepted by topic author Tiantaili P
July 2016

Re: Content Grouping tracks only one page, other pages are missing

Top Contributor
# 4
Top Contributor
I meant an example page containing grouping code to see whether there is a tracking issue
VP & Chief Evangelist at Hub'Scan | Contact me
Level 80 Digital Analytics Warrior, KPI Therapist and Keeper of the One True Tagging Plan

Re: Content Grouping tracks only one page, other pages are missing

Visitor ✭ ✭ ✭
# 5
Visitor ✭ ✭ ✭
Yes, you are right. I did find a bug by using Google Analytics Debugger. Now I can see my groups in my report. Thank you so much!