-
Notifications
You must be signed in to change notification settings - Fork 16
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
NgxMatomo is not adding correct Matomo's script #77
Comments
Hi @tushar33 Can you please provide a reproduction code (or at least your configuration), so I can investigate further? |
Service file @Injectable({ trackEvent(category: string, action: string, name?: string, value?: number): void { app.module code I followed this doc https://github.com/EmmanuelRoux/ngx-matomo/blob/1.x/README.md |
Please add the content of the configuration ( |
Configuration matomoConfig: { |
Thanks. As explained in the docs, the
(Section Basic setup of README) |
What if I want to use matomo URL as I am not setup matomo on server. Correct me if I am wrong |
I don't understand your question sorry. How is your Matomo setup? It is necessarily deployed on some url, am I wrong? Given the url you provided, can you try with |
By using this component I am expecting logs on matomo dashboard. I want to logs user clicks so I am using this component and using the configs which are available in tracking code. Following is the tracking code available
|
Please try using following configuration properties: trackerUrl: 'https://sitename.matomo.cloud',
siteId: 1,
scriptUrl: '//cdn.matomo.cloud/sitename.matomo.cloud/matomo.js' |
Do you receive tracking data? (You can check for example if you receive realtime data) |
Unable to check dashboard as tracking code verification failed not allowing to check data. Please suggest how to check |
Can you please try using To do so:
|
Hi @tushar33, is your issue solved? |
Hi @EmmanuelRoux, not checked and kept on hold due to issue. I will check and update you. |
I am encountering an issue with the @ngx-matomo/tracker library (version 1.3.6) in Angular 11, where the tracking code verification fails with the error message "Tracking code verification failed. Please verify that you have installed the code correctly."
Upon inspection, I observed that the script is attempting to load from the URL https://sitename.matomo.cloud/matomo.php/matomo.js. However, attempting to access this URL results in an Internal Server Error. This discrepancy raises concerns about the accuracy of the script addition.
Notably, when inspecting the tracking code on Matomo, the provided link is formatted as //cdn.matomo.cloud/sitename.matomo.cloud/matomo.js.
I would appreciate it if you could confirm whether the script added is correct. If it is not, kindly advise on the correct method for loading the script using the URL cdn.matomo.cloud, considering the package I am currently using.
The text was updated successfully, but these errors were encountered: