Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 832 Bytes
title category category_order order permalink
Hash mode

Some websites don't really navigate to other pages but us the hash (#) in the URL. Normally Simple Analytics removes everything from the URLs after a ? or a #. We don't want to collect this information because it could contain private information like search keywords.

To allow the script to detect those hash changes you can add data-mode="hash" to the script tag:

<script data-mode="hash" async defer src=""></script>
<noscript><img src="" alt=""></noscript>

This way the Simple Analytics script knows it should detect hash changes and records them as page views. We still drop everything after the question mark, but we keep the hash.

You can’t perform that action at this time.