Was this page helpful?

Track objects

    Table of contents

     

    Definition

    RUM BI can also be used for tacking individual objects within a page. This feature relies on the The W3C "ressource timing" API, available on certain browsers (IE10). For a full list, please check http://caniuse.com/#feat=resource-timing.

    Variable

    It uses the configuration variable rumbiConf.trackObject that is configured with a regular expression matching the urls to track.

    For more background, please consult (french):

    http://sf1.col.ip-label.net:8000/rep...ourceTiming.md

    Example

    This code tracks the Google Analytics traffic within a page:

    <script type="text/javascript">

    var rumbiConf={

    id:"TRACKERID",

    i:9,

    v:0,

    trackObject: "^http:\/\/www\.google-analytics\.com\/__utm\.gif"

    };

    rumbiConf.observerstart = new Date();

    </script>

    This code example tracks multiple ojects (1 metric per object) :

    <script type="text/javascript">

            var rumbiConf = {

                id: "TRACKERID",

                i: 9,

                v: 0,

                performancetiming: 1,

                trackObject: "^http://(cdn1.domain.com/images/logo/logo.png|cdn2.domain.com/logo/logo.png|cdn3.domain.com/images/logo/logo.png)$"

            };

            rumbiConf.observerstart = new Date();

    </script>

    
     
    Was this page helpful?
    Tag page (Edit tags)
    • No tags
    Page statistics
    4479 view(s), 7 edit(s) and 2516 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments