Feature Summary
Hey, I think it would be good to use the query parameters "?ref=" and "?utm_source" (and potentially also ?source) as values for the referer if the header is not present.
To implement this, we would need to extend the logic in the tracker's getBrowserReferrer function.
Component
@counterscale/tracker
Additional Context
Plausible checks these parameters, if any of them is present, they are used instead of the referrer header:
tagged_source =
request.query_params["utm_source"] ||
request.query_params["source"] ||
request.query_params["ref"]
source.ex#L54
Pirsch Analytics checks the Referrer header first, and uses these parameters if the Referrer header is null or empty:
export const PIRSCH_REFERRER_QUERY_PARAMETERS = ["ref", "referer", "referrer", "source", "utm_source"] as const;
constants.ts#L5
Feature Summary
Hey, I think it would be good to use the query parameters "?ref=" and "?utm_source" (and potentially also ?source) as values for the referer if the header is not present.
To implement this, we would need to extend the logic in the tracker's
getBrowserReferrerfunction.Component
@counterscale/tracker
Additional Context
Plausible checks these parameters, if any of them is present, they are used instead of the referrer header:
source.ex#L54
Pirsch Analytics checks the Referrer header first, and uses these parameters if the Referrer header is null or empty:
constants.ts#L5