<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to track who views/accesses data layers in AGO? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1043347#M39278</link>
    <description>&lt;P&gt;I have no experience with it other than the Demo, but there's always &lt;A href="https://enterprise.arcgis.com/en/monitor/" target="_self"&gt;ArcGIS Monitor&lt;/A&gt;, too.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1617370786173.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9979i9C41C0088F0E9A5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1617370786173.png" alt="jcarlson_0-1617370786173.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It seems to be able to return per-user request counts for sepcific content reports.. But I'm pretty sure it's only for Enterprise, not AGOL. These data are clearly coming from &lt;EM&gt;somewhere&lt;/EM&gt;, but I would guess that without direct access to the machine hosting the server instance, you probably wouldn't be able to get at it, or at least, not very easily.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 13:42:23 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2021-04-02T13:42:23Z</dc:date>
    <item>
      <title>How to track who views/accesses data layers in AGO?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1042114#M39228</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Is there a way to track what items users are viewing in my ArcGIS Online Organization? I have downloaded the activity log and I can see which users are performing actions like updating, editing, etc, but I am interesting and tracking who is viewing/accessing an item.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Mar 2021 20:16:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1042114#M39228</guid>
      <dc:creator>BrittaneyHarkness</dc:creator>
      <dc:date>2021-03-30T20:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to track who views/accesses data layers in AGO?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1043339#M39276</link>
      <description>&lt;P&gt;Not on a per-user basis, I don't think. You can get usage reports for individual items, but this will not tell you &lt;EM&gt;who&lt;/EM&gt; is accessing it. Also, one "view" is not the same for a web map (one open of the map) as for a feature layer (one query to the layer, potentially many queries within a single session).&lt;/P&gt;&lt;P&gt;That said, you &lt;EM&gt;could&lt;/EM&gt; try to track usage. The various items in your portal have a &lt;STRONG&gt;views&lt;/STRONG&gt; property. If this property were queried at regular intervals, you could identify periods of increased use, then try to tie this to specific users through the activity log.&lt;/P&gt;&lt;P&gt;It still won't give you specifically who is accessing what, but it may give you a closer idea. Is there a particular end goal to getting user-specific usage stats?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 12:52:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1043339#M39276</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-04-02T12:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to track who views/accesses data layers in AGO?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1043344#M39277</link>
      <description>&lt;P&gt;Hi Josh,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response. The need to track user specific stats comes from a request to monitor usage of sensitive data (not pii but still sensitive) we serve out to a group in AGO. So I have an idea of who could be using the data because its only shared with members of 1 group, but there was a request to have an even finer grained log of usage beyond just views. The data is all feature layers so our goal was to see 'who' is accessing 'what' data. I figured this was not feasible but I want to confirm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 13:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1043344#M39277</guid>
      <dc:creator>BrittaneyHarkness</dc:creator>
      <dc:date>2021-04-02T13:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to track who views/accesses data layers in AGO?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1043347#M39278</link>
      <description>&lt;P&gt;I have no experience with it other than the Demo, but there's always &lt;A href="https://enterprise.arcgis.com/en/monitor/" target="_self"&gt;ArcGIS Monitor&lt;/A&gt;, too.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1617370786173.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9979i9C41C0088F0E9A5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1617370786173.png" alt="jcarlson_0-1617370786173.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It seems to be able to return per-user request counts for sepcific content reports.. But I'm pretty sure it's only for Enterprise, not AGOL. These data are clearly coming from &lt;EM&gt;somewhere&lt;/EM&gt;, but I would guess that without direct access to the machine hosting the server instance, you probably wouldn't be able to get at it, or at least, not very easily.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 13:42:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1043347#M39278</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-04-02T13:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to track who views/accesses data layers in AGO?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1043352#M39279</link>
      <description>&lt;P&gt;Yea, totally agree. If our data was in our enterprise I would definitely access monitor or just pull the service request details from our server. But I like your other idea about conflating logins from our group members with upticks in views for the item layers. I might just go with that to get close to addressing the original request. Thanks Josh!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 13:55:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1043352#M39279</guid>
      <dc:creator>BrittaneyHarkness</dc:creator>
      <dc:date>2021-04-02T13:55:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to track who views/accesses data layers in AGO?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1043360#M39280</link>
      <description>&lt;P&gt;You're welcome! And I'm happy to share our current process for pulling view counts in a similar fashion, if you try to go that route.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from arcgis import GIS
import pandas as pd
from datetime import datetime

gis = GIS('portal-url', 'user', 'pass')

content_list = gis.content.search('NOT owner:esri_apps', max_items=-1)

out_dict = {}

for item in content_list:

    out_dict[content_list.index(item)] = [item.title, item.type, item.numViews, datetime.now(), item.owner, item.id]

df = pd.DataFrame.from_dict(out_dict, orient='index')

df.rename(columns={0:'title', 1:'type', 2:'views', 3:'date', 4:'owner', 5:'id'}, inplace=True)

# Wasn't sure how to filter by two owners in the query, this gets rid of the straggler ESRI items
df = df.loc[df['owner'] != 'esri']

# Adjusting timestamps for server / local machine offset (UTC vs UTC -6)
df.loc[:, 'date'] = df['date'] + pd.Timedelta('6 hours')

# Get standalone table of view counts
usage_table = gis.content.get('itemID').tables[0]

# Get the count per layer from most recent run
last_count = usage_table.query(
    group_by_fields_for_statistics='id',
    out_statistics= [
        {
            "statisticType":"max",
            "onStatisticField": "views",
            "outStatisticFieldName": "max_views"
        }
    ],
    as_df = True)

# Merge the latest count into dataframe
df = df.merge(last_count, on=['id'], how='left')

# New column to show change
df = df.assign(daily = df.views - df.max_views)

adds = usage_table.edit_features(adds=df.fillna(0).astype({'daily':'int'}).spatial.to_featureset())

print(adds)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The resulting table can be visualized in a dashboard pretty well. Or instead of a hosted table, you could have the script append to a CSV, SQL table, etc using the same basic process, and then you could use other software like Excel or Tableau to get a nice Pivot Table.&lt;/P&gt;&lt;P&gt;Or just keep working in Python! Pandas with MatPlotLib could be all you need for some really slick analysis of view counts.&lt;/P&gt;&lt;P&gt;Schedule that script to run at whatever interval you need to identify meaningful spikes in usage. And of course, if you're only interested in certain layers, you could supply a static list of items instead of an open-ended query as I have.&lt;/P&gt;&lt;P&gt;This table can get pretty big pretty fast, depending on the interval and number of layers, so you may want an additional script that drops any rows outside of a certain time range, like "past 30 days" or something.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 14:17:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1043360#M39280</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-04-02T14:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to track who views/accesses data layers in AGO?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1585572#M63640</link>
      <description>&lt;P&gt;Also need this feature enhancement. We want to see who is using an app. Not a layer, an app. Who and when, by user. Not just an overall count.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Feb 2025 17:33:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1585572#M63640</guid>
      <dc:creator>Kevin_MacLeod</dc:creator>
      <dc:date>2025-02-14T17:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to track who views/accesses data layers in AGO?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1654622#M66485</link>
      <description>&lt;P&gt;Another +1 to this. We have sensitive data as defined by our state; it would be useful to audit who in our organization has viewed a number of items and for how long they viewed it.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 19:59:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1654622#M66485</guid>
      <dc:creator>JordanCarmona</dc:creator>
      <dc:date>2025-10-01T19:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to track who views/accesses data layers in AGO?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1666378#M67111</link>
      <description>&lt;P&gt;+1&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2025 17:43:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-to-track-who-views-accesses-data-layers-in-ago/m-p/1666378#M67111</guid>
      <dc:creator>JackFilipovic1</dc:creator>
      <dc:date>2025-11-17T17:43:34Z</dc:date>
    </item>
  </channel>
</rss>

