Skip to main content

Build location and ad blocker segments with the Listener Agent

Use the Listener Agent in AI Canvas to track where visitors are and who uses an ad blocker

Difficulty

Job to be done

Goal

Time

Easy

Know where visitors are and which of them block ads

Segments by country and ad blocker use, for targeting and ad audiences

About 10 minutes

You want to reach visitors by country, or leave visitors who block ads out of your ad audiences. BlueConic can work out both without asking visitors anything: location comes from the visitor's IP address, and ad blocker use is checked on each page view. In AI Canvas, you describe what you want and the Listener Agent sets up both listeners for you.

This article shows the prompts to use, what the agent checks, what you confirm, and how to combine location and ad blocker use in one segment, such as visitors in Germany who use an ad blocker.

Value-Based Outcome

All BlueConic use cases are associated with one or more Value-Based Outcomes. This use case relates to Smarter Customer Engagement.


Before you begin

  • The BlueConic script on your site. Both listeners collect data on the channels where the BlueConic script runs.

  • Permission to create listeners and segments in BlueConic.

  • Your consent policy. If your organization requires consent before profiling, check that your consent setup covers these listeners before you turn them on.


Set up location tracking

  1. Select Growth Plays in the main navigation. On Templates, select Start from scratch to open a blank canvas, or open an existing growth play.

  2. In the canvas chat, type:

    Set up a Geolocation listener that fills the standard location properties on every profile and runs on all channels.

  3. The agent checks your setup before it proposes anything. If you already have a Geolocation listener, it places that listener on the canvas instead of building a duplicate, and it may update its settings, such as the channels it runs on. Review the proposed change before you confirm.

  4. A Confirm to continue card asks you to confirm the listener. Select Yes, proceed. New listeners start off, so a second card asks to turn it on. Select Yes, proceed again. Nothing is created or turned on until you confirm.

  5. The listener appears in the Collect column with a green dot, which means it's live. For each visitor, it fills location properties such as country, region, city, time zone and zip code. Each one comes in two versions:

    • Most recent, for example Country (most recent): the latest location only. Use this for "visitors in Germany".

    • All, for example Country (all): every location the visitor has been seen in. Use this for "anyone who has ever visited from Germany".


Add ad blocker detection

In the same canvas chat, type:

Set up an AdBlock Detection listener that writes to AdBlock usage detected on every page view and runs on all channels.

The AdBlock Detection listener checks on each page view whether the visitor uses an ad blocker. It stores yes or no in the AdBlock usage detected property, and writes the value only when it changes.

Confirm the two cards again: one to create the listener and one to turn it on. Both listeners now sit in the Collect column.


Use it in a segment

You can create segments straight away. They start small and fill as visitors browse, so give them a few days before you judge their size. For example:

  • Create a segment of visitors whose most recent country is United States.

  • Create a segment of visitors who use an ad blocker.

  • Create a segment of visitors whose most recent country is United States and who use an ad blocker.

Before it saves anything, the agent checks the values stored on your profiles, for example how a country name is spelled, so the rule matches what's there. A Confirm to continue card asks to create the segment.
Select Yes, proceed. The segment appears in the Segment column of the canvas.

To change a segment, ask in plain language. For example, Include Austria and Switzerland. The agent updates the same segment instead of creating a new one, and asks you to confirm the change.

If a segment is empty, the agent tells you why, for example that only a few profiles have an ad blocker value so far.


Check it's working

  1. Both listeners are on. Ask: Which Geolocation and AdBlock Detection listeners are active? You should see one of each.

  2. Test on your site. Open your site in Chrome or Firefox with an ad blocker turned on, browse a few pages, then find your profile. Country (most recent) should show your country, and AdBlock usage detected should show yes.

  3. Give it time. Profile counts can take 15 minutes or more to update.


Tips

  • Location is based on IP address. It's reliable at country, region and city level, not street level. VPNs and corporate proxies can show a different location.

  • Ad blocker detection doesn't work in Safari. Safari visitors always show as no, so the real share of ad blocker users may be higher than your data shows.

  • The Geolocation listener has no settings. It always fills the standard BlueConic location properties.

  • The AdBlock Detection listener has one setting: the property it writes to. The default is the best choice. A custom property must exist before the listener can use it.


Next steps

Did this answer your question?