API Analytics Documentation

API Analytics Documentation

Please apply the following analytics tracking code to the head section of your webpages for accurate, anonymous tracking of page views for all API generated pages.

Directory

Record analytics for your organizations’ directory endpoint. *corporate_username value is a string and should be dynamically written from the API response as it can change.

<script src="//d2mo5pjlwftw8w.cloudfront.net/analytics/analytic.ly.min.v1.0.0.js"></script>
<script type="text/javascript">
analyticly.track({
    asset_type : analyticly.TYPES.DIRECTORY,
    corporate_username : <CORPORATE_USERNAME>
});
</script>

Expert/Staff

Record analytics for your organizations’ expert/staff endpoint. *corporate_username/expert/staff username value is a string and should be dynamically written from the API response as it can change.

<script src="//d2mo5pjlwftw8w.cloudfront.net/analytics/analytic.ly.min.v1.0.0.js"></script>
<script type="text/javascript">
analyticly.track({
    asset_type : analyticly.TYPES.USER,
    corporate_username : <CORPORATE_USERNAME>
    attr : {
        username : <USERNAME>
    } 
});
</script>

Spotlight Listing

Record analytics for your organizations’ spotlight search endpoint. *corporate_username value is a string and should be dynamically written from the API response as it can change.

<script src="//d2mo5pjlwftw8w.cloudfront.net/analytics/analytic.ly.min.v1.0.0.js"></script>
<script type="text/javascript">
<script type="text/javascript">
analyticly.track({
   asset_type : analyticly.TYPES.SPOTLIGHT,
   corporate_username : <CORPORATE_USERNAME>,
   attr : {
       post_id : <POST_ID>
   } 
});
</script>
</script>

Spotlight Post

Record analytics for your organizations’ spotlight post endpoint. *corporate_username is a string and should be dynamically written from the API response as it can change. Same goes for spotlight post value.

<script src="//d2mo5pjlwftw8w.cloudfront.net/analytics/analytic.ly.min.v1.0.0.js"></script>
<script type="text/javascript">
<script type="text/javascript">
analyticly.track({
    asset_type : analyticly.TYPES.SPOTLIGHT,
    corporate_username : <CORPORATE_USERNAME>,
    attr : {
        post_id : <POST_ID>
    } 
});
</script>
</script>

Leave a comment

Your email address will not be published. Required fields are marked *