-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Labels
Description
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
Labels
Type
Projects
Status
Ready for Dev