layout | title | description | sidebarType |
---|---|---|---|
page_v2 |
Analytics for Prebid.js |
Prebid.js Analytics Adapters |
1 |
There are many analytics adapter plugins available to track header bidding performance for your site.
{% include vimeo-iframe.html id="957374949" title="957374949" %}
Further Content:
Each analytics provider has specific instructions for using their system, but these are the general steps:
- Create an account with the analytics vendor and obtain the necessary IDs
- Build Prebid.js package with the vendor's analytics adapter
gulp bundle --modules=exAnalyticsAdapter,xyzBidAdapter
- If required, load analytics JavaScript from vendor directly on the page
- Call the
pbjs.enableAnalytics()
function
e.g.
pbjs.que.push(function() {
pbjs.enableAnalytics({
provider: 'NAME',
options: {
[...]
}
});
});
{% assign analytics_pages = site.pages | where: "layout", "analytics" %}
-
{% for page in analytics_pages %}
- {{ page.title }} {% endfor %}
{% for page in analytics_pages %}
{: .table .table-bordered .table-striped } | Module Code | {{ page.modulecode }} | Prebid.org Member | {% if page.prebid_member == true %}yes{% else %}no{% endif %} | | GDPR Support | {% if page.tcfeu_supported == true %}yes{% elsif page.tcfeu_supported == false %}no{% else %}Check with vendor{% endif %} | USP/CCPA Support | {% if page.usp_supported == true %}yes{% elsif page.usp_supported == false %}no{% else %}Check with vendor{% endif %} | | IAB GVL ID | {% if page.gvl_id %}{{page.gvl_id}}{% else %}Check with vendor{% endif %} | COPPA Support | {% if page.coppa_supported == true %}yes{% elsif page.coppa_supported == false %}no{% else %}Check with vendor{% endif %} |
{{ page.content }}
- Integrate with the Prebid Analytics API (For developers)