Goal tracking with a URL

(afishler) #1


Let me start by saying that i feel I am doing something wrong :slight_smile:

I am facing similar (but not identical) issues that are described here

I definitely see some of my goal tracked. I see the web logs and all goes ok.
From historical reasons I am using server side HTTP call to track this goal. This is a purchase action and I have a goal defined for that and sending a server-to-server URL like

In the piwik_log_conversion table I see a fraction of my goals there - some goals have the same idvisitor - which is kind of strange as from a server-to-server call (no browser) I do not send any cookies. Just wanted them treated as separate visitors/visit for every call.

I saw the limit of 1 conversion per visit - but as there should not be user id on the call I was expecting each to be treated as separate visit anyways.

Question is - through this method where did my goals disappear?


(Matthieu Aubry) #2

If you generate http request to track the goal, you should also set the IP to the visitor IP, otherwise it is set to the server IP. See example of calling setIp( $ip ) in Tracking API - Analytics Platform - Matomo