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

Inform if Matomo Tag Manager container tracking code is not on the page #773

Open
Chardonneaur opened this issue Mar 20, 2024 · 6 comments
Labels
Enhancement New feature or request

Comments

@Chardonneaur
Copy link
Contributor

Hi team,
It happens sometimes that some clients do not understand why their Matomo Tag Manager configuration is not working.
One of the reason is that sometimes they just do not understand that a new tracking code (so to say the container) has to be added to the page.
--> Cannot we create a feature which would indicate that the container tracking code is not on the page?

@snake14
Copy link
Contributor

snake14 commented Mar 20, 2024

Hi @Chardonneaur . Thank you for taking the time to create this issue. Are you thinking that we inspect the URL configured for the measurable and see if the container JS is loaded on the page? Or were you thinking allow the customer to test any page by typing a URL into an input?

This could potentially be done in conjunction with #577

@snake14 snake14 added the Enhancement New feature or request label Mar 20, 2024
@snake14 snake14 added this to the For Prioritisation milestone Mar 20, 2024
@AltamashShaikh
Copy link
Contributor

Hi @Chardonneaur . Thank you for taking the time to create this issue. Are you thinking that we inspect the URL configured for the measurable and see if the container JS is loaded on the page? Or were you thinking allow the customer to test any page by typing a URL into an input?

This could potentially be done in conjunction with #577

@snake14 We have a way to check if JS code is installed on a website on no-data page, can we leverage that ?

@snake14
Copy link
Contributor

snake14 commented Mar 21, 2024

@snake14 We have a way to check if JS code is installed on a website on no-data page, can we leverage that ?

@AltamashShaikh Possibly. The no-data page doesn't explicitly check if the JS code snippet is installed, but it does check if the MTM code is executing and sending tracking requests back to the right Matomo instance. We would have to adjust the wording of the success message if we want to use the component outside of the no-data screen though:
image

@AltamashShaikh
Copy link
Contributor

@Chardonneaur Something like above will do ?
The user would have to enter the URL and check if the tracking code is installed or not, the placement of this input box is something we need to decide

@Chardonneaur
Copy link
Contributor Author

Thank you, to me, it is "Are you thinking that we inspect the URL configured for the measurable and see if the container JS is loaded on the page?" because that's the real thing.
Users should be warned/informed, that the Matomo Tag Manager cannot collect the data if no container is on the page.

@AltamashShaikh
Copy link
Contributor

@Chardonneaur The Q is when should we do this and where should we show an alert, a background task is not possible as it requires opening the URL in browser to verify, to do in background we would require node installed on server which would open the url in some headless browser and verify if its installed or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants