Track user Behavior on Embedded Dashboards
I do have some embedded dashboards into my website and member portal, how can I understand how they are engaging with those dashboards, where they click and how they are interacting with it. Like MS Clarity works.
I tried using MS Clarity but since domo is embedded as a third party in iframe, MS clarity dont look inside iframes.
Best Answer
-
Since the Domo dashboards are embeddedin an iframe, tracking tools don't have direct access to grab the interactions within the iframe. You have a few options though. You can setup tracking to attach listeners within your page to capture data when users interact with the dashboard. You can then push the data to your preferred analytics tool or your own database.
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0
Answers
-
Since the Domo dashboards are embeddedin an iframe, tracking tools don't have direct access to grab the interactions within the iframe. You have a few options though. You can setup tracking to attach listeners within your page to capture data when users interact with the dashboard. You can then push the data to your preferred analytics tool or your own database.
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0 -
Would it be possible to learn more about this option? We use a secured space within WordPress and our DOMO dashboards are set to private and reside within the portal environment. We'd like to track the monthly usage of all of our dashboard inventory.
0 -
@DeborahAnderson - you should post your question as a new question so the forum community can read it in entirety.
A quick response….
DomoStats and Domo Governance Datasets collect data on dashboard views and provide insights on dashboard or card views, user activity, date and time.
Since your dashboards are embedded in WordPress, you can probably layer an additional tracking using WordPress' functionalities. Google Analytics or Tag Manager to add custom event tracking (clicks, page views on user interaction), triggers on when the iFrame with a Domo dashboard is loaded.
If you use WordPress membership or portal plugins, it might already have built-in tracking. Other options might be plugins like MonsterInsights or MemberPress.
I believe there is a Domo Embed SDK JavasScript library that allows you to embed Domo content in your website or application. First add snippet to your sites head tag.<!-- Global site tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XXXXXXXXXX"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
// Replace with your Google Analytics ID
gtag('config', 'G-XXXXXXXXXX');
</script>
Code would be something like:domo.embedDashboard({
container: '#domo-container',
url: 'https://your-domo-instance.domo.com/embed/pages/your-dashboard-id',
events: {
onDashboardLoad: function () {
console.log('Dashboard loaded');
gtag('event', 'DashboardLoad', { dashboardId: 'your-dashboard-id' });
},
onCardClick: function (data) {
console.log('Card clicked:', data);
gtag('event', 'CardClick', { cardId: data.cardId, title: data.title });
}
}
});Or you could try to track when the iFrame loads on the parent page.
const iframe = document.getElementById('domo-container');
iframe.addEventListener('load', function () {
console.log('iFrame loaded');
gtag('event', 'DashboardLoad', { dashboardId: 'your-dashboard-id' });
});Although it doesn't track specific data, it does identify when the iFrame loaded.
You can also try using query parameters.
https://your-domo-instance.domo.com/embed/pages/your-dashboard-id?userId=12345&sessionId=abcde
** Was this post helpful? Click Agree or Like below. **
** Did this solve your problem? Accept it as a solution! **0
Categories
- All Categories
- 1.9K Product Ideas
- 1.9K Ideas Exchange
- 1.6K Connect
- 1.3K Connectors
- 303 Workbench
- 6 Cloud Amplifier
- 9 Federated
- 3K Transform
- 104 SQL DataFlows
- 640 Datasets
- 2.2K Magic ETL
- 4K Visualize
- 2.5K Charting
- 769 Beast Mode
- 72 App Studio
- 43 Variables
- 718 Automate
- 185 Apps
- 462 APIs & Domo Developer
- 57 Workflows
- 14 DomoAI
- 40 Predict
- 17 Jupyter Workspaces
- 23 R & Python Tiles
- 402 Distribute
- 116 Domo Everywhere
- 277 Scheduled Reports
- 9 Software Integrations
- 135 Manage
- 132 Governance & Security
- 8 Domo Community Gallery
- 44 Product Releases
- 12 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 111 Community Announcements
- 4.8K Archive