> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.pandavideo.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to capture UTM tags in the Player

Panda Video allows you to track the origin of your visitors through UTM tags (utm_source, utm_medium, utm_campaign, utm_term, utm_content). For these metrics to appear in the Analytics panel, you need to add a capture script to your page.

### Why do I need this script?

Due to cross-domain security restrictions (Same-Origin Policy), the Player cannot automatically capture UTM parameters from your page URL. The capture script solves this by mediating communication between the page and the Player.

### How to set up

1. Copy your video embed code as usual

2. Paste the embed on your page

3. Add the script below, right after the embed:

```html
<script src="https://player.pandavideo.com.br/embed.js"></script>
```

### Full example

```html
<div style="position: relative; padding-top: 56.25%;">
  <iframe
    id="panda-YOUR-VIDEO-ID"
    src="https://player-vz-xxxxx.tv.pandavideo.com.br/embed/?v=YOUR-VIDEO-ID"
    style="border: none; position: absolute; top: 0; left: 0;"
    allow="accelerometer; gyroscope; autoplay; encrypted-media; picture-in-picture"
    allowfullscreen
    width="100%"
    height="100%">
  </iframe>
</div>
<script src="https://player.pandavideo.com.br/embed.js"></script>
```

### How to test

Access your page by adding UTM parameters to the URL:

```
https://yoursite.com/page?utm_source=google&utm_medium=cpc&utm_campaign=test
```

Play the video and check the metrics in Analytics > UTM.

### Important

- The script must be placed below the embed, not inside it

- Use only one script per page, even with multiple videos

- Metrics may take a few minutes to appear in the panel