mod_seo

Adds basic search engine optimization to the base templates and provides an admin interface for the SEO modules.

Google Analytics

To enable Google Universal Analytics tracking on your Zotonic website, go to http://yoursite/admin/seo in your browser and enter your Google Analytics tracking code.

Zotonic automatically supports the User ID Analytics feature by adding the user ID to the tracking code. You have to enable User ID in your Analytics account first.

Extra parameters

If you wish to add extra Google Analytics parameters, override the _ga_params.tpl file and add the parameters:

{#
    Override this template to provide extra Google Analytics parameters.
    See https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference
#}
{
    {% if m.acl.user %}
        "userId": "{{ m.acl.user|escapejs }}",
    {% endif %}
    "sessionControl": "start"
}

Todo

Add more documentation