GETパラメータが異なるURLのクリックカウンターを分離

If I have a link to a page in addition to that same page with customized GET params, it seems link counting for the GET-parameterized versions get folded into the bare URL. For example, I can link to Google’s search page or to a specfic search term or two. I would count those links as all very distinct. It seems that — at least on our site, at least for a different webpage — clicks on the ?q= links count as clicks onto the non-parameterized URL and none of the parameterized versions show a click counter (not even a unified one as another link to the base URL does).

This post is something of a trial of a MWE; If you’re reading this please try clicking on some of the links above. I’m curious if this the behavior we’re seeing on our site.

「いいね!」 1

これでクリック数を確認できるようになりました。お役に立ちましたでしょうか?

いいえ、現在表示されているクリック数はまさに問題の証拠です。それらはベースの /search URLへのリンクにのみ表示されています。search/term/two へのリンクにはクリック数が表示されていません。

これは、当社のサイトで多言語調査を実施したため気づきました。https://example.com/survey というリンクがあり、その後 https://example.com/survey?lang=af-za?lang=ar-ae のようなリンクがいくつかありました。外部サイトから実際の情報を収集し、多くの人が他の言語でアンケートに回答したことはわかっていますが、投稿自体のクリックカウンターは非常に奇妙に見え、誤解を招くような表示でした。

「いいね!」 2

なるほど!つまり、上記で例示したように、

https://www.google.com/search

はクリックカウンターを取得しますが、

https://www.google.com/search?q=search

は取得しないのですね。興味深い。@zogstrip、調査のためにこれをスロットに入れることはできますか?

「いいね!」 3

@nbianca これをリストに追加してもらえますか?

「いいね!」 2

リンク検索を実行した際、クエリパラメータを確認せずに一致する最初のリンクが選択されていました。このバグは以下のPRで修正しました。

「いいね!」 5

このトピックは3日後に自動的に閉じられました。新しい返信はもう許可されていません。