I am trying to enable site search tracking on my intranet, but because the query parameter is a fragment identifier, I get no result. Here is the URL of a search result for the word paper: https://intranet.example.com/en/search/intranet#k=paperI use Google Tag Manager. I know there is a way with the help of a custom JavaScript macro in Tag Manager, but I'm not a programmer so I cannot figure it out.
How to enable Site search tracking in Google Analytics when query parameter is a fragment identifier?
google analytics;javascript;google tag manager