Solved

Report parameter via URL

  • 4 February 2023
  • 5 replies
  • 559 views

Hi,

I want to create a dashboard on the behavior of specific groups I track with the Accounts Addon. 
This dashboard should be embedded/linked from another page. So what I would love to do is create a URL/link to the dashboard and add a parameter with the name of the respective group to the URL and have the dashboard filter on that. 
 

Is there a way to do this?

icon

Best answer by Saish Redkar 6 February 2023, 20:31

View original

5 replies

Userlevel 7
Badge +10

Hey @kornelius

From what I know, if you embed a dashboard via iframe,etc in your custom page/website, the dashboard filters won’t be available to query on in the embed view. The embed portion is normally view only.

So the only way to query on your account group would be to use that as a dashboard filter parameter on the actual dashboard link.

Let me know if I interpreted your use case correctly. Hope this helps.

Thanks Saish. Perhaps I’m missing something, but I don’t quite get it to work.

Imagine there is the dashboard

 

https://analytics.eu.amplitude.com/MYCOMPANY/dashboard/d-k775vh

I’d like to add something like

https://analytics.eu.amplitude.com/MYCOMPANY/dashboard/d-k775vh?userid=12345

To filter the report by the user id.

Userlevel 7
Badge +10

 

Unfortunately, that isn’t possible for any dashboard link.
Query parameters as filters will work only in the dashboard UI and not dynamically with the URL.
Moreover, any change or filter application to the static dashboard in the UI modifies the URL to a new one -

https://analytics.eu.amplitude.com/YOURCOMPANY/dashboard/id/edit/<id>

However, if you are looking to create any particular chart type dynamically with some parameters and want the resultant graphs in JSON format, then you can take a look at the Dashboard REST API .

The naming is confusing here since it’s meant for charts and not a “dashboard” in particular.

Hope this helps.

 

 

Userlevel 1
Badge +2

Thanks for responding @Saish Redkar ! That’s correct. The Dashboard Rest API can help you programmatically modify some charts, but we don’t have this capability with a dashboard of charts yet.

 

@kornelius We would love to learn more about your use case and submit a feature request. Can you please share these details to support.amplitude.com?

 

@kornelius We would love to learn more about your use case and submit a feature request. Can you please share these details to support.amplitude.com?

Thanks @ttan, I just did. Hope this helps.

Reply