Forum Discussion

AkshayIyer's avatar
AkshayIyer
Community Member
9 years ago

Google Analytics at Page Level in Rise

Hi Guys

One of the benefits of using Rise is that we have been able to host training outside the LMS and embed links within products. This allows us to embed those links with software products and people are able to consume training easily.

However tracking goes for a toss since Google Analytics only works at an index.html level for now.

Is there a way we can see how much time is being spent on what topic in rise?

Warm Regards

Akshay

53 Replies

  • I don't really use Google analytics but it seems like you can add a custom field to the page: 

    Specifying fields at creation time
    An optional fields object may also be passed that allows you to set any of the analytics.js fields at creation time, so they will be stored on the tracker and apply to all hits that are sent.

     
    ga('create', 'UA-XXXXX-Y', 'auto', 'myTracker', {
      userId: '12345'
    });

    And as with all calls to the ga() function, the fields object may also be used to specify all of the fields together:

     
    ga('create', {
      trackingId: 'UA-XXXXX-Y',
      cookieDomain: 'auto',
      name: 'myTracker',
      userId: '12345'
    });

    See the create method reference for more comprehensive details.

    So, in theory, you could set the optional field to the page identifier from the URL. 

    https://www.rabbitoreg.com/demo/atd2017/#/list/5jQrLIuFk_JP1xPDTVmvh5e5IV_evZJa?_k=udt1j0

    Whatever the "k" equals to is a unique identifier for each page. You could grab that from the URL and create the tracking based on that. 

    Not tested, just an idea.