4 Replies Latest reply on Sep 8, 2015 7:03 AM by danaeinsidler

    Can anyone shed light on Google Analytics issue?




      Posted below is a Google Analytics script that I can't seem to get working.


      I know all the variables work and are being populated.


      I created the custom dimensions successfully.


      But when we put the code in place, we get nothing. At all.


      Any ideas?







            (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),




        var userclass;

        var userID = window.parent._jive_effective_user_id;

        var containerString = window.parent.jive.global.containerType.toString();

        var placeid = window.parent.jive.global.containerID.toString();



        if (userID < 0) {

         userclass = 'guest';

        } else {

         userclass = 'member';



          if (containerString == '2020') {

          placeid = 'personal content';

                } else if (containerString == '3') {

          placeid = 'user profile';



          ga('create', 'UA-894330-5', 'auto');


          ga('set', 'dimension1', userclass);

          ga('set', 'dimension2', placeid);


          ga('send', 'pageview');