Google Opt Out

  • There is another way to do this, without having to edit the template.

    Install spqr/assets.

    Add as URL using async to every page.


    as file or inline js to every page.


    <a href="javascript:gaOptout()">Disable tracking</a>

    to your "privacy-policy"-page (or wherever you want to place it).

    The extension spqr/googleoptout does all this without using the much larger extension spqr/assets, which could be a bit too much, if you only want to create an google analytics opt out.