Skip to content

Audience Segmentation

The SmartWall can segment your audience based on rules and show to them different widgets to interact with. The rules can be defined in the SmartWall's Dashboard

These rules can identify an audience based on things like:

  • are they using an Ad Blocker ?

  • are they from one specific country ?

  • are they using a specific browser ?

  • are they coming from a search engine, like google ?

  • or are they coming from a social network platform, like facebook or twitter ?

  • are they using the mobile app or the website ?

  • are they visiting a specific URL on my site ?

  • had they seen the paywall already ?

  • or had they seen a video or made a payment already ?

  • and more...

Custom Variables

If the previous rules are not enough for your use case and you want to create your custom rules for the audience segmentation, you can use custom variables.

These are variables passed to SmartWall's SDK from your web site. This way you can create rules in SmartWalls's audience segmentation based on data from your system. These variables can have any name and values of types number, string or boolean.

Some examples of use of the custom variables could be:

  • To show a different widget to users logged in your website from those not logged in.

  • To only show the SmartWall if users accepted previously the use of cookies.

  • To show a different widget to users who interacted previously with some element of your website.

Example:

<script>
  var smartWallSDK = new SmartWallSDK({
    customVariables: {
      var1: 1,
      var2: false,
      var3: 'ch',
      isUserLogged: true,
      hasAcceptedCookies: false,
      hasVisitedSubscriptionPage: true
    },
    smartwallUid: "your-smartwall-uid",
    apiKey: "your-api-key",
    articleUid: "your-article-uid",
    articleSelector: "your-article-css-selector"
  });
</script>

You can then go to your dashboard and configure in the audience segmentation as shown on the two screenshot below

alt text

alt text

Custom Metrics

The audience segmentation can segment the audiences based on user events as well, like visualizations of the SmartWall, video visualizations or payments, but this can not be enough for your use case. If that's the case you can create your own custom metrics.

You can send your own metrics to the SmartWall. To send metrics call the SDK function sendCustomMetric.

Once the metric is sent, it will appear as a Custom Metric in the SmartWall Dashboard audience segmentation.

Example:

var smartWallSDK = new SmartWallSDK({
  // ... Your sdk options
});
var metricName = "your-metric-name";
var value = 1;
smartWallSDK.sendCustomMetric(metricName, value);

You can then go to your dashboard and configure in the audience segmentation as shown on the two screenshot below

alt text

alt text