Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deep links for mobile app in Piwik 3 ? #10840

Open
eldk opened this issue Nov 6, 2016 · 4 comments
Open

Deep links for mobile app in Piwik 3 ? #10840

eldk opened this issue Nov 6, 2016 · 4 comments
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@eldk
Copy link

eldk commented Nov 6, 2016

Hello,

Is there a way to handle deep link url https://developer.android.com/training/app-indexing/deep-linking.html to native Android app in Piwik 3 reports ?

Here is a doc from schema.org on potentialAction : https://www.w3.org/wiki/images/1/10/PotentialActionsApril11.pdf (Scheme based encoding of entry point)

Thanks,

Eric

@eldk eldk changed the title Deep links for mobile app in Piwik 3 Deep links for mobile app in Piwik 3 ? Nov 6, 2016
@tsteur
Copy link
Member

tsteur commented Nov 6, 2016

I think it would be possible in general but some effort to make sure users arrive on correct report within the app. What would be your workflow?

@eldk
Copy link
Author

eldk commented Nov 7, 2016

Hello,

The fact is that I use Piwik - since a few weeks - so I'm a newbee - to track some technical metrics from one Android native app.

For transparency, ethic, and users information, I want to use anonymous user to show the collected data on the front page.

As it is one native app with content without related webpage, all links in reports give 404 errors.

From one end, when the user browse reports from one mobile device, I think, but I'm not sure (my app handle them for appindexing ) that deeplink should be done from Piwik report to related content in the app.

On the over end, when the user browse reports from a desktop, I don't know how to handle it. But 404 errors on each app related link is not ... Maybe links should simply be removed, as content name is explicit.

I go further and come back.

Maybe have you some idea ?

Thanks,

Eric

@tsteur
Copy link
Member

tsteur commented Nov 7, 2016

I understand. What you could do already now is to link to a Piwik widget see https://piwik.org/docs/embed-piwik-report/#embed-a-piwik-report-in-a-html-page It mentions iFrame and embedding into a website but you can use these URLs also to link to it within the app. You can even link to the dashboard without the Piwik interface see https://piwik.org/docs/embed-piwik-report/#embed-the-piwik-dashboard-in-a-html-page

For Piwik this would be eg http://demo.piwik.org/index.php?module=Widgetize&action=iframe&moduleToWidgetize=Dashboard&actionToWidgetize=index&idSite=7&period=week&date=yesterday&token_auth=anonymous

As you might want to change such links at some point I would recommend to link to eg opalesurfcasting.net/publicdashboard and then redirect users to the correct URL. This way you can always control the link even when people haven't updated your app yet

@eldk
Copy link
Author

eldk commented Nov 7, 2016

Ok, Thanks a lot @tsteur .
I had a quick look to your advice and link, but it sounds good.
I will try it and come back with result.
Eric

@mattab mattab added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Nov 11, 2016
@mattab mattab added this to the Mid term milestone Nov 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

3 participants