---
sourceDocument: Australia Employee Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/employee-service-management

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia Employee Service Management

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# Set up Content Analytics tracking

# Set up Content Analytics tracking {#ariaid-title1}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 min. de leitura

To use Content Analytics with custom pages or widgets, add the tracking profile to your Employee Center or service portal theme header and add the cdaAnalytics service to your custom widgets.

## Antes de Iniciar

Role required: sn_cda.analytics_admin

## Por Que e Quando Desempenhar Esta Tarefa

More steps for page tracking:  
Add the tracking profile to your Employee Center or service portal theme header.

    <widget
    id="cda-site-analytics"
    options="{ 'tracking_profile_name': '{PROFILE_NAME}', 'enable_logging': false}"
    ></widget>

Nota:  
If you don't specify a tracking profile in the options, content analytics tries to use the default tracking profile. See [Create a Content Analytics tracking profile](https://servicenow-prod.fluidtopics.net/Xl7x_WG75l9Y_CF2_iOs3A "Use Tracking Profiles to configure your ServiceNow content analytics dashboards.").

## Procedimento

1. Navigate to AllService PortalHeaders \& Footers.
2. Select your header (Content Publishing Header, Employee Center Header, ESC Header, or HRMadrid Header).
3. If necessary, clone the header.  
   For more information, see [Service Portal
   configuration page](https://www.servicenow.com/docs/access?context=service-portal-configuration-page&version=australia&pubname=australia-platform-user-interface&ft:locale=en-US). Or, you can use Angular Providers, see [Reuse components with
   Angular Providers](https://www.servicenow.com/docs/access?context=angular-providers&version=australia&pubname=australia-platform-user-interface&ft:locale=en-US).
4. If using a clone from the Content Publishing header, search for the cda-site-analytics widget tag in the Body HTML template field.
5. Then replace PROFILE_NAME with the profile that you want to use for tracking.  
   For more information, see [Configure a portal header menu](https://www.servicenow.com/docs/access?context=configure-header-menu&version=australia&pubname=australia-platform-user-interface&ft:locale=en-US).
6. If you're using a different header, add the following to the Body HTML and replace PROFILE_NAME:  

       <widget
       id="cda-site-analytics"
       options="{ 'tracking_profile_name': '{PROFILE_NAME}', 'enable_logging': false}"
       ></widget>

   If you don't specify a tracking profile in the widget options, content analytics tries to use the default tracking profile (if it exists).

   Track Employee Center events

   To track Employee Center events, add the cdaAnalytics service to your custom widgets. See [Widget developer guide](https://www.servicenow.com/docs/access?context=widget-dev-guide&version=australia&pubname=australia-platform-user-interface&ft:locale=en-US).  
   For example:

       function ($scope, cdaAnalytics) {
       $scope.onButtonClick = function() {

       // track event using the default tracker (no argument for getTracker)
       cdaAnalytics.getTracker() .then(function(tracker) {
       tracker.trackEvent(
       '{Desired Category}',
       '{Desired Action}',
       '{Desired Name}'
       );
       });

       // track event using specific tracker
       cdaAnalytics.getTracker ('Human Resources Portal Tracker').then(function (tracker) {
       tracker.trackEvent(
       'Human Resources',
       'Video Viewed',
       'Open Enrollment 2018'
       );
       });
       };
       }

7. Navigate to Service PortalWidgets.
8. Select a widget or create one.
9. Add cdaAnalytics to the Related List of Angular Providers.
10. Update the client controller of the widget to use the cdaAnalytics service.

