Performance analytic specific ip's
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2025 05:29 AM - edited 05-29-2025 07:26 AM
Hi community,
i am a newbie with Performance Analytic, i am trying to have a performance analytic to get for specific ips to be shown has External bucket and if not then it's Internal.
My goal it's to have a way to track per day how many per bucket per day i have. i have a script (below) but i think it's my buckets, it ask me for name (that's fine) but in start and end i dont know how to do it with my script.
Do i need to put "0" for a bucket and "1! and change my script return according to it? is it my table for the ips?
When i run my jobs i see my buckets but it doesn't show me the data, if i understand it is related to that?
If you have any ideas or other way to provide those information please let me know
** I modify those Ips for obvious reason 🙂 **
(function getBreakdownValue(input) {
var ip = input.u_ip_address + '';
if (
ip.startsWith('127.') ||
ip.startsWith('128.0') ||
ip.startsWith('129.0') ||
ip.startsWith('130.')
) {
return 'External IP';
} else {
return 'Internal IP';
}
})(current);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2025 04:05 AM
Interesting use case! Tracking specific IPs as External vs Internal buckets makes sense for your reporting. Your script logic looks fine, but for proper daily aggregation you’d want to ensure your PA indicator is set to “Daily” and the breakdown source is configured correctly. You don’t need to use "0" or "1" — just return clear bucket labels, as you’re doing. Double-check your indicator source and time-series config!