SteveV
SteveV

Reputation: 441

Recording Specific User Event

We have a non-profit website that has an ad blocker detect on it and need the ability to determine how many times the "You Have a Ad Blocker running" appears.

Basically, when an ad blocker is detected, I run JS code to display a banner asking they turn it off (same message we all see). I only fire the code if a ad blocker is detected. We want to capture how many times the ad blocker is hit as it impacts our donations and we need to account for it.

I control the message display in JS and am wondering if something like Google Analytics would be the way to capture this?

Upvotes: 0

Views: 68

Answers (1)

RaV
RaV

Reputation: 627

You can measure it with event tracking feature. Events can be send to Google Analytics with any action of an user - not only page view, but on click, element visibility or basically on any condition you specify with the use of JS.

You can put event tracking straight into your code, but be sure to check out Google Tag Manager tool. It is widely used in digital analytics - helps keep code cleaner, and allows non-developers to easy implement further measurements. You can also set event tracking with the use of JS in GTM.

Upvotes: 1

Related Questions