-
Notifications
You must be signed in to change notification settings - Fork 15
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
Please add method for Content Tracking #21
Comments
Hi @denverFAN and thank you very much. I understand your wish. Please look into #19 (comment) where I described something similar. You should be able right now to put your additional tracking params from https://developer.matomo.org/api-reference/tracking-api#optional-content-trackinghttpsmatomoorgdocscontent-tracking-info into In the optional
Please give it a try and tell us your experiences. I can look forward to make this more clear in the documentation and will see if I can change the param name to something more generic or add multiple ones for the optional params. |
Hi @donni106 Thank you for the quick reply and suggested solution. Yes, I understand that, but still this is kind of a workaround. For future, it would be better if there is a separate method listed in the documentation. This will help other people incl. newbies to quickly find what they need instead of searching for a solution in Issues section. As I mentioned earlier, based on our experience this Content Tracking feature is very much frequently used. For sure this will make a package better. Have a nice day! |
Thank you for the helpful exchange. I can understand that very well. I will make it a point to provide different methods to ensure more clarity in use. |
I am unable to do this with the current TypeScript definitions because the However, I really think helper methods that match each of the matomo tracking types would be absolutely amazing. I am willing to add PRs if you also see value in this @donni106 . If, in contrast, you feel like this lib should remain low-level, then perhaps an auxiliary repo that wraps this repo would be a better option. What do you think? |
Thanks for asking, I agree with having multiple clear helper methods to make it easier to use and get started. |
I came across this page on the Matomo FAQs: https://matomo.org/faq/general/what-features-of-matomo-analytics-are-supported-when-tracking-mobile-app-analytics-using-android-or-ios-sdk/
That being said, should we even consider adding it? I can make a PR if so. |
I see good reasons to be able to track content impressions and content interactions. I even found it documented in the iOS SDK: https://github.com/matomo-org/matomo-sdk-ios#content-tracking |
@donni106 how do you feel about Typescript and how do you feel about converting the tracker into TS? There are a few features I'd love to make a PRs for but I wouldn't be able to use those features in my project. This is because the typed-definitions donated at DefinitelyTyped would be outdated. |
Hey @donni106 moving to TS is always a good idea 🎄 I'm down to review the PR or help in a specific task, let me know how I can help 🙂 |
Hi @donni106
Your package is already awesome, works great. Thank you very much for developing it.
It would be nice if there is a method
trackContent()
to track content as it is described in Matomo documentation. Many teams incl. us who installs Matomo usually use this Content Tracking feature.Below is a brief description of the required parameters to be passed in the HTTP API request for Content Tracking.
The text was updated successfully, but these errors were encountered: