<?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: ArcGIS Enterprise Sites and Google Analytics in ArcGIS Hub Questions</title>
    <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622007#M3154</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/256841"&gt;Kelly Koenig&lt;/A&gt;‌, this issue resulted in an enhancement request being logged.&amp;nbsp; I'll reach out to you directly regarding getting your customer number attached to this enhancement request.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 May 2020 22:32:50 GMT</pubDate>
    <dc:creator>jill_es</dc:creator>
    <dc:date>2020-05-12T22:32:50Z</dc:date>
    <item>
      <title>ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622001#M3148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;BR /&gt;in my Company, we are having some issues in monitoring via &lt;EM&gt;Google Analytics&lt;/EM&gt; a web page created with &lt;EM&gt;ArcGIS Enterprise Sites&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These were our actions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;we have created an Enterprise Site&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;in the edit section, we have entered the Google Analyics tracking ID for one of our google accounts (img. 1)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;we have configured our Google Analytics account and its property with the complete site URL &lt;BR /&gt;https://&lt;EM&gt;w&lt;/EM&gt;&lt;SPAN style="color: #4c4c4c; background-color: #ffffff;"&gt;&lt;EM&gt;ebadaptorhost.domain&lt;/EM&gt;.it&lt;/SPAN&gt;/portal/apps/sites/#/ato&lt;BR /&gt; -&amp;gt; but is not accepted, the error is &lt;STRONG&gt;"the URL must not contain fragment"&lt;/STRONG&gt; (img. 2)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;so we try to insert up to fragment and is accepted by the system&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;gt; we check the monitoring of the monitoring of the pages by sending test traffic (img. 3)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;-&amp;gt; the site mangement page opens but &lt;STRONG&gt;not traffic is detected&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the tracking functionality via Google Analytics would natively exist, we are here to asking how to solve and &lt;BR /&gt;what we're doing wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot in advance for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2020 13:37:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622001#M3148</guid>
      <dc:creator>AlfonsoDodero</dc:creator>
      <dc:date>2020-03-17T13:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622002#M3149</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We'll need to look into this. I have bad feelings about it because the URL method we are using (the fragments `#`) was to avoid putting item ID's in the Enterprise Sites URL so they are more durable (i.e. you can make a new site and "flip in" the URL to replace an existing one and users / traffic don't need to update). My guess is Google analytics is very unhappy with the `#` so the feature may need some reconsideration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you getting no events for any views of your enterprise site?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Mar 2020 14:49:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622002#M3149</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-03-17T14:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622003#M3150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Graham, thank you for the interest.&lt;/P&gt;&lt;P&gt;Unfortunately google analytics does not detect any views in my enterprise site.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some ideas to overcome the fragment?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2020 08:43:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622003#M3150</guid>
      <dc:creator>AlfonsoDodero</dc:creator>
      <dc:date>2020-03-19T08:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622004#M3151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of enterprise is this? We should get a case going ASAP. We likely need to issue a fix. I'm going to loop in some folks from our support team&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2020 13:51:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622004#M3151</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-03-19T13:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622005#M3152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agreed - thanks, Graham!&amp;nbsp; Alfonso,&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;based on the information you provided, I&amp;nbsp;would recommend reaching out to Tech Support&amp;nbsp;to look further into this issue.&amp;nbsp; I'll be reaching out to you directly regarding this.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Mar 2020 16:44:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622005#M3152</guid>
      <dc:creator>jill_es</dc:creator>
      <dc:date>2020-03-19T16:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622006#M3153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/137330"&gt;Alfonso Dodero&lt;/A&gt;‌ &lt;A href="https://community.esri.com/migrated-users/237322"&gt;Graham Hudgins&lt;/A&gt;‌ &lt;A href="https://community.esri.com/migrated-users/74920"&gt;Jill Edstrom&lt;/A&gt;‌ I came across this thread while trying to add Google Analytics to one of our sites. Did y'all find a solution for this issue, or is there a bug&amp;nbsp;number I can&amp;nbsp;follow to stay updated? Thanks in advance for any info y'all can provide!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2020 18:54:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622006#M3153</guid>
      <dc:creator>KellyKoenig</dc:creator>
      <dc:date>2020-05-12T18:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622007#M3154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/256841"&gt;Kelly Koenig&lt;/A&gt;‌, this issue resulted in an enhancement request being logged.&amp;nbsp; I'll reach out to you directly regarding getting your customer number attached to this enhancement request.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2020 22:32:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622007#M3154</guid>
      <dc:creator>jill_es</dc:creator>
      <dc:date>2020-05-12T22:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622008#M3155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jill, I came accros this thread when searching for solutions to adding analytics to our site. I also spoke to and ESRI technical rep who said that this request has been logged as Enhancement&amp;nbsp;&lt;SPAN style="font-size: 12.0pt;"&gt;ENH-000127894.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;However, when I search for this enhancement number, I get no results. Do you happen to know what enhancement this might be?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2020 15:10:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622008#M3155</guid>
      <dc:creator>NormWray</dc:creator>
      <dc:date>2020-07-17T15:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622009#M3156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Norm -&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;ENH-000127894's synopsis is: "&lt;SPAN style="color: #080707;"&gt;Modify the URL structure of Enterprise sites to not include the symbol for a URL fragment identifier."&amp;nbsp; There can be a lag before it shows up on the Support website but, since your account is attached to it, the defect and it's details should show up for you in MyEsri.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2020 16:16:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/622009#M3156</guid>
      <dc:creator>jill_es</dc:creator>
      <dc:date>2020-07-17T16:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1015490#M4169</link>
      <description>&lt;P&gt;Hi all, we have the same problem and it's a huge problem... any info about release plans ?&lt;/P&gt;&lt;P&gt;At this time the only workaround that we have found is to embed a small js page with the GA codes, in every Sites's page. It works but clearly only for pages where you can embed an iframe: all the major components of Portal for ArcGIS (map viewer, scene viewer, gallery page etc) cannot be monitored.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jan 2021 11:39:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1015490#M4169</guid>
      <dc:creator>Arpa_PiemonteGeoportal_Team</dc:creator>
      <dc:date>2021-01-11T11:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1047997#M4320</link>
      <description>&lt;P&gt;Any news about bug fixing? &amp;nbsp;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 16 Apr 2021 06:52:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1047997#M4320</guid>
      <dc:creator>Arpa_PiemonteGeoportal_Team</dc:creator>
      <dc:date>2021-04-16T06:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1064098#M4496</link>
      <description>&lt;P&gt;Would you mind sharing more details of this workaround?&amp;nbsp; I am interested in what code you inserted and where within the site page to make this work.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 15:10:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1064098#M4496</guid>
      <dc:creator>JeffSchroeder</dc:creator>
      <dc:date>2021-06-02T15:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1124287#M4960</link>
      <description>&lt;P&gt;Hi, can you tell us more about your workaround ? How do you embed GA js code into Arcgis Site pages ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;fabien&lt;/P&gt;</description>
      <pubDate>Thu, 09 Dec 2021 13:32:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1124287#M4960</guid>
      <dc:creator>FabienLaganne1</dc:creator>
      <dc:date>2021-12-09T13:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1139226#M5031</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/233902"&gt;@AlfonsoDodero&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;What version of ArcGIS Enterprise were you using?&amp;nbsp; I am unable to find where you can add a Google Analytics key to an Enterprise Site.... I see it in ArcGIS Online hubs...&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dan&lt;/P&gt;</description>
      <pubDate>Tue, 01 Feb 2022 00:53:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1139226#M5031</guid>
      <dc:creator>DanMcCoy1</dc:creator>
      <dc:date>2022-02-01T00:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1143174#M5069</link>
      <description>&lt;P&gt;I threw the gtag.js script into the index.html file located in&amp;nbsp;C:\Program Files\ArcGIS\Portal\apps\sites on the enterprise server and it seems to be tracking.&lt;/P&gt;&lt;P&gt;Note you need to create a new property in Google Analytics with your enterprise domain, then grab the global site tag you have. Since I only put it on the "sites" specific index.html file, I believe it will only be tracking any ArcGIS Site that I create.&lt;/P&gt;&lt;P&gt;If I want to set it up for the entire domain (ie: the GIS home page and all sub pages), I might try injecting the script into the index.html within "C:\Program Files\ArcGIS\Portal\framework\webapps\arcgis#home", though I haven't tested that yet.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 17:58:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1143174#M5069</guid>
      <dc:creator>akochman</dc:creator>
      <dc:date>2022-02-11T17:58:51Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1243878#M5491</link>
      <description>&lt;P&gt;Anybody hear from ESRI on a solution to this problem?&amp;nbsp; The issue seems to have gone cold.&amp;nbsp; It's the end of 2022 and the last post was 10 months ago.&amp;nbsp; I believe the solution provided by akochman above will work until an upgrade is installed and&amp;nbsp;&lt;SPAN&gt;"C:\Program Files\ArcGIS\Portal\framework\webapps\arcgis#home" is over-written.&amp;nbsp; It's too bad this feature can exist in Hub but not in Site.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried to search for the bug enhancement number but, like &lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/15527" target="_self"&gt;NormWray&lt;/A&gt;, could not find it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/233902" target="_self"&gt;AlfonsoDudero&lt;/A&gt;'s attached image shows a radio button for Google Analytics.&amp;nbsp; Is this from a newer version of ArcGIS Enterprise than what I am on (10.9.1)?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2022 20:58:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1243878#M5491</guid>
      <dc:creator>PLadd</dc:creator>
      <dc:date>2022-12-27T20:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1257137#M5548</link>
      <description>&lt;P&gt;&lt;SPAN&gt;ENH-000127894 shows that its status is "In Review." During the summer 2022, the status was "In Product Plan." Seems like it was downgraded some time during the past several months. This should be a higher priority, especially since this feature is already in Hub.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2023 18:05:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1257137#M5548</guid>
      <dc:creator>kreed</dc:creator>
      <dc:date>2023-02-10T18:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1559208#M6461</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello. Thanks for providing the method to track ArcGIS Enterprise Sites, it works for my deployment at 11.3. Have you by any chance tried to change the index.html of Portal home page also?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 15:56:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1559208#M6461</guid>
      <dc:creator>MelissaK</dc:creator>
      <dc:date>2024-11-15T15:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Enterprise Sites and Google Analytics</title>
      <link>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1654560#M6759</link>
      <description>&lt;P&gt;It sounds like you've run into a common frustration with integrating Google Analytics directly into ArcGIS Enterprise Sites.&lt;/P&gt;&lt;P&gt;The core issue you're experiencing with the URL fragment (`#`) not being accepted in Google Analytics property settings is typical for Single Page Applications (SPAs), which ArcGIS Sites are.&lt;/P&gt;&lt;P&gt;The fragment is used by the application for client-side routing, and traditional Google Analytics setups often struggle to track changes after the hash, seeing it all as one page unless configured otherwise.&lt;/P&gt;&lt;P&gt;The lack of native tracking for all elements, as mentioned by Arpa_PiemonteGeoportal_Team, especially within components like the map and scene viewers, is a significant limitation of the built-in functionality.&lt;/P&gt;&lt;P&gt;The workaround of injecting the `gtag.js` script into the server files, as suggested by akochman, is a valid temporary fix, but as PLadd notes, it is prone to being overwritten during upgrades, making it difficult to maintain.&lt;/P&gt;&lt;P&gt;A more robust and scalable workaround involves using a combination of the ArcGIS APIs, Google Tag Manager (GTM), and a server-side solution, which gives you much finer control over what you track.&lt;/P&gt;&lt;P&gt;First, the ArcGIS API for Python and the underlying ArcGIS REST API can be used to programmatically monitor and gather information about your content and user interactions that happen on the server-side or are exposed via the API, such as item views or downloads, bypassing the front-end GA integration problem entirely for some metrics.&lt;/P&gt;&lt;P&gt;This data can be structured and sent to a data warehouse or directly to a reporting system.&lt;/P&gt;&lt;P&gt;Second, for front-end events and page views that the embedded script misses, the best approach is a server-side tagging solution using Google Tag Manager and a service like Stape or even a custom setup on Google Cloud Platform.&lt;/P&gt;&lt;P&gt;With GTM implemented, you can set up custom events to fire when users interact with the site.&lt;/P&gt;&lt;P&gt;The critical part is using GTM to push these interactions not just to the user's browser but to a server container hosted on Stape or GCP.&lt;/P&gt;&lt;P&gt;This server-side tagging setup is then configured to forward the data to Google Analytics (GA4 is recommended).&lt;/P&gt;&lt;P&gt;This approach addresses the SPA issue by allowing you to manually fire a virtual pageview or Standard Events like `page_view`, `view_item`, or `click` from JavaScript inside the Site pages when the URL hash changes or when a specific action occurs (like opening a map viewer).&lt;/P&gt;&lt;P&gt;Finally, you can bring all this data together using the Google Analytics Data API.&lt;/P&gt;&lt;P&gt;This allows you to programmatically access all the tracked data from your GA property, including the custom events you're sending from your server container, and combine it with the server-side metrics you gather from the ArcGIS REST API.&lt;/P&gt;&lt;P&gt;This method provides a comprehensive view of user behavior across both the core site structure and the richer, dynamic map and scene viewer components that the native GA integration fails to monitor.&lt;/P&gt;&lt;P&gt;While it requires more initial setup and maintenance, this strategy future-proofs your analytics against ArcGIS Enterprise upgrades and provides a depth of tracking not possible with the native, limited feature.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 17:05:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-hub-questions/arcgis-enterprise-sites-and-google-analytics/m-p/1654560#M6759</guid>
      <dc:creator>Sweely</dc:creator>
      <dc:date>2025-10-01T17:05:07Z</dc:date>
    </item>
  </channel>
</rss>

