Skip to content

Prebid Click Tracking #6130

@AStephenson

Description

@AStephenson

How can I track prebid clicks in GAM? The bidder is AppNexus. Creative is below, but I am unsure where to put the click tracker in the creative tag.

<script src = "https://cdn.jsdelivr.net/npm/prebid-universal-creative@latest/dist/creative.js"></script>
<script>
  var ucTagData = {};
  ucTagData.adServerDomain = "";
  ucTagData.pubUrl = "%%PATTERN:url%%";
  ucTagData.adId = "%%PATTERN:hb_adid_appnexus%%";
  ucTagData.cacheHost = "%%PATTERN:hb_cache_host_appnexus%%";
  ucTagData.cachePath = "%%PATTERN:hb_cache_path_appnexus%%";
  ucTagData.uuid = "%%PATTERN:hb_cache_id_appnexus%%";
  ucTagData.mediaType = "%%PATTERN:hb_format_appnexus%%";
  ucTagData.env = "%%PATTERN:hb_env%%";
  ucTagData.size = "%%PATTERN:hb_size_appnexus%%";
  ucTagData.hbPb = "%%PATTERN:hb_pb_appnexus%%";
  // mobileResize needed for mobile GAM only
  ucTagData.mobileResize = "hb_size:%%PATTERN:hb_size_appnexus%%";
  try {
    ucTag.renderAd(document, ucTagData);
  } catch (e) {
    console.log(e);
  }
</script>

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Ready for Dev

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions