How to filter clicks on OS’user in webhook setup ?


I want to setup webhooks for GA. I have one GA account with several views filtered on website and apps parameters. Precisely, I have one iOS account and one Android account so I want to configure 2 different webhooks filtered on OS. I read the documentation several times and made several tests based on the received JSON to find the correct property but without success. Is there anyone who achieved this ? — Developer
Commented on May 28, 2016.

Great question! I’ve tried the filter keywords listed here and can confirm click.device.metadata.os (the filter that is supposed to offer this) does not work as expected. I will follow up with our engineering team and let you know what the deal is here.

Branch — Developer
Commented on May 29, 2016.

Yes, it’s exactly this property I need. Thanks for your action — Developer
Commented on May 30, 2016.

One more thing : for iOS, I can distinguish tab and smartphone from the metadata.model property. Is there a way to do it for Android devices ? — Developer
1 Answer(s)
Best answer Answered on May 31, 2016.

It looks like the Branch documentation on this page is actually out of date. The click.device.* keywords are only used for events triggered by incoming Universal Links (iOS) and App Links (Android). To catch the other events, you need to use click.browser.*.

The reason for this is that Universal Links and App Links actually don’t bounce through a web browser, so we trigger a different kind of event for those. To capture all situations, you’ll want to set up a two different webhooks:

  1. Filtering on click.device.metadata.os
  2. Filtering on click.browser.metadata.os

You can use click.device.metadata.model and click.browser.metadata.model for differentiating between iPhone and iPad on iOS, but currently this is not supported for Android. Too many devices on the market!

Branch — Developer