how to use JavaScript to detect the user’s browser<\/a>. It’s a little trickier than working with referrer because there’s so many browsers, so I’ll leave it to you.<\/p>\nUse the google_ad_channel Parameter to Track Metrics<\/h2>\n
At this point, you can just insert your new channel into the ad code using the google_ad_channel parameter. \u00a0This will append<\/em> the value to your channels, not overwrite them!<\/strong> So, for example, if you have two channels in your ad unit- “Sports” and “Leaderboard”- you’ll now have 3 channels- “Sports, “Leaderboard”, and “Users from Google”. \u00a0Note that if you want to use more than one channel, the google_ad_channel parameter is an array of strings, so just stack up your strings as an array and you can get even more powerful reporting!<\/p>\n<<\/span>script type=<\/span>\"<\/span>text\/javascript<\/span>\"<\/span>><\/span><<\/span>!<\/span>-<\/span>-<\/span>\r\ngoogle_ad_client =<\/span> \"<\/span>ca-pub-8741444217221083<\/span>\"<\/span>;<\/span>\r\n\/* Testing 300x250 - Do not target *\/<\/span>\r\ngoogle_ad_slot =<\/span> \"<\/span>1168546099<\/span>\"<\/span>;<\/span>\r\ngoogle_ad_width =<\/span> 300<\/span>;<\/span>\r\ngoogle_ad_height =<\/span> 250<\/span>;<\/span>\r\ngoogle_ad_channel =<\/span> adsense_referrer_channel;<\/span>\r\n\/\/--><\/span>\r\n<<\/span>\/<\/span>script><\/span>\r\n<<\/span>script type=<\/span>\"<\/span>text\/javascript<\/span>\"<\/span>\r\nsrc=<\/span>\"<\/span>http:\/\/pagead2.googlesyndication.com\/pagead\/show_ads.js<\/span>\"<\/span>><\/span>\r\n<<\/span>\/<\/span>script><\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"Ever wondered how you can set channels in your Google AdSense ad units based on on-the-spot data like user browser or origin? In this quick tutorial I’ll be showing you how to set AdSense channels in order to track statistics based on user browser types, how they arrived at your site, and pretty much anything […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,16],"tags":[2519,114,2005],"_links":{"self":[{"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/posts\/4124"}],"collection":[{"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/comments?post=4124"}],"version-history":[{"count":0,"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/posts\/4124\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/media?parent=4124"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/categories?post=4124"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.mrbluesummers.com\/wp-json\/wp\/v2\/tags?post=4124"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}