Skip to content

Commit

Permalink
Yandex Analytics Adapter: initial release (#5052)
Browse files Browse the repository at this point in the history
* Yandex Metrica

* Fixed yaml table

* Fixed bare URLs

* Update dev-docs/analytics/yandex.md

Co-authored-by: Muki Seiler <muuki88@users.noreply.github.com>

* Update dev-docs/analytics/yandex.md

Co-authored-by: Muki Seiler <muuki88@users.noreply.github.com>

* Update dev-docs/analytics/yandex.md

Co-authored-by: Muki Seiler <muuki88@users.noreply.github.com>

* Update dev-docs/analytics/yandex.md

Co-authored-by: Muki Seiler <muuki88@users.noreply.github.com>

* Global domain, yandex.com

* Synced docs with code logic

---------

Co-authored-by: Muki Seiler <muuki88@users.noreply.github.com>
  • Loading branch information
enovikov11 and muuki88 authored Feb 1, 2024
1 parent fe51b9c commit abb09ec
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions dev-docs/analytics/yandex.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
layout: analytics
title: Yandex Metrica
description: Track your Prebid.js in Yandex Metrica
modulecode: yandexAnalytics
---

# Description

This adapter is designed to work with [Yandex Metrica](https://metrica.yandex.com/about) - a web analytics tool.

{: .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.

## How to setup provider

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

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.

Init provider like this, where `123` is your counter id.

Note: If you have Single Page Application (SPA), [configure your tag](https://yandex.com/support/metrica/code/counter-spa-setup.html).

```javascript
pbjs.enableAnalytics({
provider: 'yandexAnalytics',
options: {
counters: [123],
},
});
```

## Where to find data

Go to [metrika.yandex.com/dashboard](https://metrika.yandex.com/dashboard) -> Prebid Analytics

0 comments on commit abb09ec

Please sign in to comment.