Goal overview sparkline not shown

I embed the goal overview widget in my site :

I cannot view the sparkline. Image is broken

http://my-piwik-url.com/index.php?module=Goals&action=getEvolutionGraph&moduleToWidgetize=Goals&actionToWidgetize=widgetGoalsOverview&widget=1&disableLink=1&token_auth=a87e467c7ce07c1f1f7ac14df3609ba0&idSite=9349&period=month&date=2009-07-01,2011-12-31&viewDataTable=sparkline&columns=conversion_rate
You can’t access this resource as it requires an ‘view’ access for the website id = 9349.

token_auth=is user with view access on site 9349
idSite=9349
anonymous user has no access

If I give view access for anymous user over my site 9349. I can view the graphic image.

Any Help please?

Thanks for the report, you are right that this is a bug! I added it to the ticket listing “limitations” of the Embed feature.

This bug has been fixed see the patch in: Dashboard & Sparklines should work when embedded with token_auth · Issue #1353 · matomo-org/matomo · GitHub