Skip to content

Commit

Permalink
Merge branch 'prebid:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
AdviewOpen authored Feb 19, 2024
2 parents 1e9a23f + 06ff929 commit b49c8d2
Show file tree
Hide file tree
Showing 47 changed files with 1,527 additions and 326 deletions.
44 changes: 26 additions & 18 deletions _data/sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,20 +130,6 @@
isSectionHeader: 0
subgroup: 2

- sbSecId: 0
title: Prebid and MSPA
link: /features/mspa-usnat.html
isHeader: 0
isSectionHeader: 0
subgroup: 2

- sbSecId: 0
title: Prebid and Quebec Privacy Support
link: /features/ac-quebec.html
isHeader: 0
isSectionHeader: 0
subgroup: 2

#--------------Prebid.js--------------|

- sbSecId: 1
Expand Down Expand Up @@ -1815,12 +1801,34 @@
subgroup: 0

- sbSecId: 7
title: Training Videos
link: /videos/
isHeader: 0
title: Privacy Resources
link:
isHeader: 1
headerId: privacy
isSectionHeader: 0
sectionTitle:
subgroup: 0
subgroup: 1

- sbSecId: 7
title: Prebid Privacy Overview
link: /support/privacy-resources.html
isHeader: 0
isSectionHeader: 0
subgroup: 1

- sbSecId: 7
title: Prebid and MSPA
link: /features/mspa-usnat.html
isHeader: 0
isSectionHeader: 0
subgroup: 1

- sbSecId: 7
title: Prebid and Quebec Privacy Support
link: /features/ac-quebec.html
isHeader: 0
isSectionHeader: 0
subgroup: 1

- sbSecId: 7
title: FAQs
Expand Down
7 changes: 7 additions & 0 deletions _includes/legal-warning.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<div markdown="span" class="pb-alert pb-alert-warning" role="alert">
Important: This resource should not be construed as legal advice and Prebid.org makes no guarantees about compliance with any law or regulation.
Please note that because every company and its collection, use, and storage of personal data is different, you should seek independent legal advice
relating to obligations under your regional regulations, including the GDPR, the ePrivacy Directive and individual country/province/state laws. Only a
lawyer can provide you with legal advice specifically tailored to your situation. Nothing in this guide is intended to provide you with, or should be
used as a substitute for, legal advice tailored to your business.
</div>
3 changes: 1 addition & 2 deletions dev-docs/activity-controls.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ Several, but not all, of the popular consent strings have modules (eg [Prebid Ac

### Prebid Is a Toolkit

{: .alert.alert-danger :}
Important: This resource should not be construed as legal advice and Prebid.org makes no guarantees about compliance with any law or regulation. Please note that because every company and its collection, use, and storage of personal data is different, you should seek independent legal advice relating to obligations under European and /or US regulations, including the GDPR, the ePrivacy Directive and CCPA. Only a lawyer can provide you with legal advice specifically tailored to your situation. Nothing in this guide is intended to provide you with, or should be used as a substitute for, legal advice tailored to your business.
{% include legal-warning.html %}

1. Get a privacy lawyer.
2. Consider all the privacy regulations your content business is subject to.
Expand Down
10 changes: 0 additions & 10 deletions dev-docs/analytics/google.md

This file was deleted.

2 changes: 1 addition & 1 deletion dev-docs/analytics/id5.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tcfeu_supported: true
usp_supported: true
prebid_member: true
gvl_id: 131
enable_download: false
enable_download: true
---

#### Registration
Expand Down
48 changes: 29 additions & 19 deletions dev-docs/analytics/yandex.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,45 @@
layout: analytics
title: Yandex Metrica
description: Track your Prebid.js in Yandex Metrica
modulecode: yandexAnalytics
modulecode: yandex
---

# Description
## Description

This adapter is designed to work with [Yandex Metrica](https://metrica.yandex.com/about) - a web analytics tool.
This adapter integrates Prebid.js with [Yandex Metrica](https://metrica.yandex.com/about). It offers detailed insights into auction performance and user behavior, enabling publishers to make data-driven decisions to optimize their ad revenue.

{: .alert.alert-warning :}
Disclosure: provider use Metrica Tag build based on [github.com/yandex/metrica-tag](https://github.com/yandex/metrica-tag), ~60 kB gzipped.
Disclosure: The adapter utilizes the Metrica Tag build based on [github.com/yandex/metrica-tag](https://github.com/yandex/metrica-tag), approximately 60 kB gzipped.

## How to setup provider
## Setup Instructions

Register your application on [metrica.yandex.com](https://metrica.yandex.com/) and get counter id
1. **Register Your Website:**

Insert counter initialization code obtained from the page [https://metrica.yandex.com/settings?id={counterId}](https://metrica.yandex.com/settings?id={counterId}) into your html code.
Visit [Yandex Metrica](https://metrica.yandex.com/) and register your website to obtain a counter ID.

Init provider like this, where `123` is your counter id.
2. **Insert Counter Initialization Code:**

Note: If you have Single Page Application (SPA), [configure your tag](https://yandex.com/support/metrica/code/counter-spa-setup.html).
Retrieve the counter initialization code from the Yandex Metrica settings page at `https://metrica.yandex.com/settings?id={counterId}`, where `{counterId}` is your counter ID, and embed it into your website's HTML.

```javascript
pbjs.enableAnalytics({
provider: 'yandexAnalytics',
options: {
counters: [123],
},
});
```
3. **Initialize the Adapter in Prebid.js:**

## Where to find data
Configure the Yandex Analytics Adapter in your Prebid.js setup. For optimal performance and ease of management, it is preferred to use a single counter. Add the following JavaScript snippet, replacing `123` with your actual counter ID:

Go to [metrika.yandex.com/dashboard](https://metrika.yandex.com/dashboard) -> Prebid Analytics
```javascript
pbjs.enableAnalytics({
provider: "yandex",
options: {
// Replace 123 with your actual counter ID
// It's preferred to use a single counter for optimal performance and ease of management
counters: [123]
}
});
```

4. **Special Instructions for Single Page Applications (SPAs):**

If your website is an SPA, make sure to [configure your Metrica tag accordingly](https://yandex.com/support/metrica/code/counter-spa-setup.html).

## Accessing Analytics Data

You can view the collected analytics data in the Yandex Metrica dashboard. Navigate to [metrika.yandex.com/dashboard](https://metrika.yandex.com/dashboard) and look for the Prebid Analytics section to analyze your data.
Loading

0 comments on commit b49c8d2

Please sign in to comment.