For a recent project, I wanted to link to external Google Analytics reports. The links of Google Analytics dashboard pages are a bit.. complicated though. Have a look at the example below:
I reached out to Google support, but they weren’t able to assist me with this. So I started having a better look, and after some google searches I got a bit further. The URL is build up like this:
That makes more sense, right? That encoded URL though.. Forward slashes are usually converted to
%2F, but in this case it’s
~2F. I guess we’ll just replace the percentage with a tilde.