Fetching contributors…
Cannot retrieve contributors at this time
44 lines (31 sloc) 1.41 KB
.. highlight:: django

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.
    {% if m.acl.user %}
        "userId": "{{ m.acl.user|escapejs }}",
    {% endif %}
    "sessionControl": "start"
.. todo:: Add more documentation