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

Conversion not registered #20106

Closed
7starsone opened this issue Dec 14, 2022 · 11 comments
Closed

Conversion not registered #20106

7starsone opened this issue Dec 14, 2022 · 11 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@7starsone
Copy link

Hello,
URL pattern contains something like
/one/two/three

users regularly visit that page but 0 conversions.
Please, why? On your documentation there's no specific example except for "contact" keyword.
Is the slash / an issue on the pattern or the problem somewhere else?
Thanks

@7starsone
Copy link
Author

eg. on access log
IP ADDRESS - - [13/Dec/2022:10:46:09 +0100] "GET /myfolder/ii/mod/why/submit?key=5663b8d0fb91d0423aed4282fc49e2a4&id_mod=25&id_ca=64112&id_or=14413 HTTP/2.0" 200 10330 "https://domain.com/myfolder/ii/mod/why/confirm?get_confirmation=1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36 OPR/93.0.0.0"

@7starsone
Copy link
Author

7starsone commented Dec 14, 2022

In that example the pattern contains /mod/why/submit
so that's the goal but your software doesn't register the conversion at the moment.

@7starsone
Copy link
Author

Hello, is it possible that this issue is caused by the script on the footer instead of the head ? I will test in these days to understand if it works well keeping the script inline. Thanks

@heurteph-ei
Copy link

Hi,
For questions about configuration, please ask first on forums: https://forum.matomo.org/
Please precise:

  • Matomo version
  • Tracking method (JavaScript API, MTM, logs analysis, etc.) and maybe some used tracking code
  • The browser version
  • If there are some errors in the browser console
  • If there are some HTTP requests to the Matomo server in the browser console
  • If you see some hits on the visits log (or in the real-time report)
  • The conversion configuration

@7starsone
Copy link
Author

Hi, For questions about configuration, please ask first on forums: https://forum.matomo.org/ Please precise:

* Matomo version

* Tracking method (JavaScript API, MTM, logs analysis, etc.) and maybe some used tracking code

* The browser version

* If there are some errors in the browser console

* If there are some HTTP requests to the Matomo server in the browser console

* If you see some hits on the visits log (or in the real-time report)

* The conversion configuration

Matomo 4.13.0
Javascript (now in the head section)
Firefox 108 64bit
@heurteph-ei
Maybe found, there was an error from fbpixel 'cause fbq wasn't defined. The strange thing was that Matomo retrieved in realtime the goal on the visitor profile but then the summary and the specific goal widget were never updated.
Is it expected, just because of an error on console from other scripts?
Thanks

@heurteph-ei
Copy link

Matomo retrieved in realtime the goal on the visitor profile but then the summary and the specific goal widget were never updated

This is probably due to archiving settings. Either wait for 1 day, or: https://matomo.org/faq/on-premise/how-to-set-up-auto-archiving-of-your-reports/

@7starsone
Copy link
Author

7starsone commented Dec 14, 2022

@heurteph-ei it's not about archiving, when I disabled the fbpixel then I saw the recent goal/conversion updated.

@heurteph-ei
Copy link

Maybe @sgiehl has an idea?

@sgiehl
Copy link
Member

sgiehl commented Dec 20, 2022

If a goal is configured to be triggered when a certain URL is visited, the goal will be triggered internally as soon as a tracking request contains this URL. So I guess the regex for the url match that is configured for the goal does not match for some reason.
You may want to check again how exactly the gal is configured and what exact url is sent in the tracking request.
Regarding fbpixel: Maybe that pixel manipulates the URL in some way, so it doesn't match anymore in the end

@7starsone
Copy link
Author

7starsone commented Dec 20, 2022

@heurteph-ei @sgiehl well, the URL comes from a PayPal purchase confirmation. It's returned on access log with HTTP 200 code but probably it's a S2S call where javascript is not executed. So, If I directly visit that page is a matter while if the request is S2S the user only sees a template but it's not like a real visit. So, maybe because of this they write an article like https://support.google.com/grants/answer/9628112?hl=en anyway, I would need to better understand how this S2S call works and I will try to put the code directly into that page.

@sgiehl
Copy link
Member

sgiehl commented Jan 9, 2023

Hi @7starsone . If the page is called without javascript, it won't be tracked in Matomo and thus no goal tracking can be triggered.
It might be possible to solve that using the PHP tracker and send the tracking requests in PHP directly, but it might be hard to associate that with the correct visit then.
Another possibility would be to redirect the user to a certain page after a checkout, so that one can be used for goal tracking maybe.
As there is nothing in Matomo what we could change to improve that atm, I'll close this issue for now. You can try getting some more help on our forum or maybe our support.

@sgiehl sgiehl closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2023
@justinvelluppillai justinvelluppillai added the answered For when a question was asked and we referred to forum or answered it. label Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

4 participants