jkupczak
jkupczak

Reputation: 3031

How can I track banner ad impressions on my website?

I'd like to be able to create a report that shows how many times a banner on my website was viewed between certain dates. Is there a way to do this through Google Analytics? I looked into DoubleClick for Publishers but it doesn't look like what we need at all.

An example is I have an area at the bottom of my site that holds a banner ad. Some pages have this area, some don't, but most do. When the page loads javascript randomly selects 1 from several banner images to show. I need to know how many times each banner ad is seen by the user.

Upvotes: 1

Views: 2545

Answers (1)

Javi Muhrer
Javi Muhrer

Reputation: 111

You could track the occurrence of each banner ad using events. To track events with Google Analytics, you can use the ga function that is included when you embed the Google Analytics script. You need to tell ga you want to send an event and submit a category, action, label, and value. In your case, I'd probably do something like this:

ga('send', 'event', 'bannerAd', 'impression', 'nameOfAd', 1);

For more details, see the google docs.

Upvotes: 3

Related Questions