Add support for Google Analytics to Experience Builder. Keep it simple, as was done in StoryMaps and Hub, where you have a setting or property for each Experience into which you can paste your Google Analytics Tracking ID.
[Original GeoNet thread: Google Analytics with Experience Builder?]
@LindseyStone this has always been a weak area for ESRI and I too was in need of tracking page views among other web traffic information. Fortunately this can be done relatively easily with Experience Builder Developer Edition assuming two things:
1. Your app is hosted on web server with IIS logging enabled and,2. You have access to FME or some other automation software
I read IIS log files on a schedule, use FME to parse, clean, etc. the file into a readable format, filter the records specific to my ExB web app then write them to both an SDE Table and an MS Access DB. This is an extremely high level overview of the process but ultimately I'm left with a table of records that can be queried to display a host of user and traffic information.
Specifically for tracking web app page views, I query the [cs-uri-query] field of the IIS log to get page view counts and then report the most viewed app page over different time periods.
Happy to to provide greater detail upon request. Good luck.
@ShengdiZhang I see you say this was implemented in June 2024 of AGOL. I need to track the individual page views and via https://www.esri.com/arcgis-blog/products/experience-builder/announcements/whats-new-in-arcgis-experience-builder-june-2024/#google, it says it can track which pages are being viewed. Does this apply to Experience Builder Developer edition or is this on the Roadmap to be applied to Enterprise?
Thank you @ShengdiZhang!
Implemented in the June 2024 version of AGOL.
According to the 2024 roadmap, it looks to be coming in Q2 this year: https://community.esri.com/t5/arcgis-experience-builder-blog/arcgis-experience-builder-2024-roadmap/bc-p/1368781
We used Experience Builder for a public application for December Nights (optimized for mobile).
It had huge engagement. 96,352 item views over a two-day period. It would be great to be able to get a finer level of detail knowing which experience builder pages were being used, and for how long.
Very important! Please implement.
yep need this to show how well the maps are used by staff and public, makes the 3 year cycle of getting budget to renew much easier (hint hint)
its in hosted web app builder and story maps, why not EB as well?
This would be ideal to provide us with details about which parts of our Experience Builder Apps are being used the most and provide the best value to our customers.
I have just discovered that ESRI only saves usage data for two years!!! 😢 All the more reason that we absolutely need Google analytics in ALL apps and services. (And start saving reports every so often so that your usage data is not lost forever!)
Come on, this idea has been here since 2020; its time has come!!! Many of us need this.
Yes, please!
Yes - how can that be missing in EXB when it's there in the InstantApps. (I should say: how can it be permitted to be absent when it is such a crucial tool to get usage insights - which is essential for justification to spend any time creating the app in the first place).
This would be great. The usage chart is far too limited. I would love to know which experience builder pages are the most used. How long is a page used, etc.
I believe currently the only option is the "usage" tab which is not the details I am looking for. Is this showing 22 unique users? or 1 user 22 times? Do they load the Exb for 10 seconds, or stay on it for hours?
We need this too!
This would be extremely helpful to have the ability to track using Google Analytics in any Experience Builder App, and stream in GA. Note: Don't try the embed widget that does not work.
@JulioGarrido, We didn't have luck with @FredericPoliart_EsriAU code either. I am not sure that the script tags are supported in the embed code. Analytics integration would be a great enhancement to ExB.
@FredericPoliart_EsriAU I have tried your method by modifying your HTML code to use our "G-" code as well as using the code provided by Google Analytics. Neither HTML code worked for us. I'm wondering if it's because Google Analytics is moving from a "UA" environment to a "GA4" environment or EB does not support this type of functionality.
Either way, thank you for posting a possible solution. EB needs to have a simpler way to add Google Analytics similar to that of ArcGIS Hub. We are using EB for our public map. It would be nice to see the traffic.
Yes great idea - getting insight how to platform/app is used, this is major! Another suggestion is getting Google Analytics for ArcGIS Enterprise Platform to see the different types of consumption (internally/externally) .
I agree, we need Google Analytics in EB.
Yes, this would be great! It's almost 2023, the fact that we can't get detailed analytics for all AGOL content is sad!
I am just testing it now . I created a new Experience Builder (online, not the dev edition)and I added the embed tag. It's actually on https://experience.arcgis.com/experience/ I can see the result in Google Analytics:
and the Google Chrome network analysis does show the ExB app fetching/sending something to GA
@PeterKnoop Try the following:1. open your experience builder (the welcome window "terms and conditions" or the main page)
2. add an <embed> widget
3. in the Embed Content tab, select " code"
4. paste the following
5. the rectangle will be hollow : make it very small 8x8pixels and hide it somewhere
6. Save, publish,
7. test and look at your Google Analytics : select Reporting realtime so you can see the 1 appearing (you)
8. Start Google Chrome Debug window (F12) and look for a network packet going to https://www.googletagmanager.com/gtag/js?id=G-1TMxxxxBC0
[!] your GoogleAnalytics Tag ID will be different, of course. You must replace my G-DH7XXWBZ2G above .
When you
@FredericPoliart_EsriAU would you be able to provide more details on how one can use the <embed> widget with Experience Builder in ArcGIS Online to add Google Analytics?
Pasting Google's JavaScript snippet for a tag into the code block for an Embed widget does not work for me.
If you are using Experience Builder Developer edition, you can also use this:https://blog.saeloun.com/2022/02/17/how-to-integrate-react-app-with-google-analytics.htmlYou won't be able to add Google Analytics with the AGOL-only version of Experience Builder (for now), unless you use the <embed> widget
@FredericPoliart_EsriAU just to confirm then, if you happen to be using Experience Builder Developer Edition, then there is a workaround. You can place the google analytics script in its required location in <head>, as you are able to directly edit pages' html.
There is no workaround for regular Experience Builder.
@PeterKnoop correct, we pre-load google analytics on startup in the <head> but then we also have hidden <embed> tags throughout the experience builder app. On Google Analytics we get a bit more information on specific sub-pages .
Thanks @Kara_Shindle . The FloodWise Property report is generated like this:1. We create another separate ExB app that has just one huge custom widget (imagine a widget that is the width of a piece of paper and tall like 6 pieces of paper)
2. Inside that widget we nest a standard Map Widget (to show the map and zoom-to property)
3. Inside that widget we have an area of bar-graph showing the property's highest and lowest level, together with other metrics values. It is basically a JavaScript canvas that draws the bar chart; The axis are dynamically calculated based on the height of the bars in the bargraph. The ExB also consumes a web map table, called "metrics" - we query that table to render the bar graph in JavaScript. 4. Once the html is rendered, we use a lambda process (hosted on AWS) to convert it to PDF and return it to the client.
This one's nice too 🙂 https://franklincountypa.maps.arcgis.com/apps/webappviewer/index.html?id=22d612cb86914276aa9c47e1bff6a9a7
@FredericPoliart_EsriAU when I look at your app's source, I see that the Google Analytics script is in the <head> of the HTML page, not as part of a Experience Builder Embed widget, which would put it in an <iframe> in the <body>. Did I misunderstand your original suggestion, which I read as using the out-of-the-box Embed widget in Experience Builder?
The suggested Idea here was also meant for the regular Experience Builder environment, not the developer edition. It looks like your site was built using the developer edition, which means it is easy to insert the Google Analytics script in the <head>. I don't believe you can do that in the regular edition, or is there something I am missing here?
Thanks!
@FredericPoliart_EsriAU Nice app! Do you mind sharing how you got the "Techincal FloodWise Property Report" to generate? I'm interested in doing something similar.
Přihlaste se pro psaní příspěvků, sledování obsahu a další. Jste tu noví? Zaregistrujte se zdarma.