---
title: Activating tracking ID in templates
description: You can configure PingFederate to display the tracking ID in the user-facing error Velocity templates. When an error occurs, use the tracking ID to look for the related log messages.
component: pingfederate
version: 13.1
page_id: pingfederate:administrators_reference_guide:pf_activat_tracking_id_templates
canonical_url: https://docs.pingidentity.com/pingfederate/13.1/administrators_reference_guide/pf_activat_tracking_id_templates.html
llms_txt: https://docs.pingidentity.com/pingfederate/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
revdate: July 5, 2022
section_ids:
  about-this-task: About this task
  steps: Steps
  result: Result
---

# Activating tracking ID in templates

You can configure PingFederate to display the tracking ID in the user-facing error Velocity templates. When an error occurs, use the tracking ID to look for the related log messages.

## About this task

You can find the Velocity template files in the `<pf_install>/pingfederate/server/default/conf/template` directory.

The Velocity variable is `$TrackingId` and is available in the following templates:

* `general.error.page.template.html`

* `generic.error.msg.page.template.html`

* `idp.slo.error.page.template.html`

* `idp.sso.error.page.template.html`

* `sourceid-wsfed-idp-exception-template.html`

* `sp.slo.error.page.template.html`

* `sp.sso.error.page.template.html`

* `state.not.found.error.page.template.html`

## Steps

1. Open the applicable Velocity template file.

2. Search for the `$TrackingId` variable.

3. Follow the inline instructions to activate the variable.

   |   |                                                                    |
   | - | ------------------------------------------------------------------ |
   |   | Template customization does not require a restart of PingFederate. |

4. For a clustered PingFederate environment, repeat these steps on each engine node.

## Result

The following screen capture demonstrates the user experience after the `$TrackingId` variable is activated and an error has occurred. In this example, `V3IwuUsy8PQp-9ZbE9UfUjOEo9c` is the tracking ID.

![Sample error message with Tracking ID](_images/pyx1564003632972.png)
