ExpertFile Documentation
  • đź‘‹Welcome!
  • Reference
    • API Reference
      • Authentication
      • Experts
        • Expert Directory/Search
        • Expert Profile
          • Accomplishments
          • Affiliations
          • Article
          • Availability
          • Biography
          • Categories
          • Course
          • Education
          • Event Appearances
          • Fees
          • Industries
          • Languages
          • Links
          • Media Appearances
          • Partnerships
          • Patents
          • Research Focus
          • Research Grants
          • Sample Talks
          • Social
          • Tagline
          • Tags
          • Testimonials
          • Topics
          • SEO/Meta Data
      • Staff
        • Staff Directories/Search
        • Staff Profiles
          • Biography
          • Categories
          • Education
          • Languages
          • Links
          • Tagline
          • Tags
      • Inquiries
        • Admission
        • Business
        • Donor
        • Event
        • Expert Witness
        • General
        • Media
        • Meeting
        • Partnership
        • Research
      • Posts (Spotlights)
        • Post Listings/Search
        • Full Post
      • Q&A (Answers)
        • Q&A Listings/Search
        • Individual Q&A
    • Embeds
      • Expert Directory/Search
      • Expert & Staff Profiles
        • Adding Profile Meta Data
      • Featured Experts
      • Inquiries
      • Post Listings/Search
      • Full Post
        • Adding Post Meta Data
      • Q&A Listings/Search
      • Individual Q&A
        • Adding Q&A Meta Data
      • Adding Meta Data to Embeds
    • WordPress
      • Expert Directory/Search
      • Expert & Staff Profiles
      • Featured Experts
      • Inquiries
      • Q&A Listings/Search
      • Individual Q&A
      • Post Listings/Search
      • Full Post
    • Tracking Code (Analytics)
    • Adding Meta Data for SEO
    • Helpers
Powered by GitBook
On this page
  • Directory
  • Expert/Staff
  • Posts Listing
  • Full Post
  • Q&A Listing
  • Q&A Posts

Was this helpful?

  1. Reference

Tracking Code (Analytics)

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.2.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.2.js"></script>
<script type="text/javascript">
analyticly.track({
    asset_type : analyticly.TYPES.USER,
    corporate_username : <CORPORATE_USERNAME>
    attr : {
        username : <USERNAME>
    } 
});
</script>

Posts 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.2.js"></script>
<script type="text/javascript">
analyticly.track({
   asset_type : analyticly.TYPES.SPOTLIGHT,
   corporate_username : <CORPORATE_USERNAME>
});
</script>

Full 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.2.js"></script>
<script type="text/javascript">
analyticly.track({
    asset_type : analyticly.TYPES.SPOTLIGHT,
    corporate_username : <CORPORATE_USERNAME>,
    attr : {
        post_id : <POST_ID>
    } 
});
</script>

Q&A Listing

Record analytics for your organizations’ questions 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.2.js"></script>
<script type="text/javascript">
analyticly.track({
   asset_type : analyticly.TYPES.SPOTLIGHT,
   corporate_username : <CORPORATE_USERNAME>
});
</script>

Q&A Posts

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

<script src="//d2mo5pjlwftw8w.cloudfront.net/analytics/analytic.ly.min.v1.0.2.js"></script>
<script type="text/javascript">
<script type="text/javascript">
analyticly.track({
   asset_type : analyticly.TYPES.QANDA,
   corporate_username : <CORPORATE_USERNAME>,
   attr : {
       question_id : <QUESTION_ID>
   } 
});
</script>
</script>
PreviousFull PostNextAdding Meta Data for SEO

Last updated 1 year ago

Was this helpful?

Page cover image