Skip to content

Commit

Permalink
Merge pull request #66 from ericdwang/master
Browse files Browse the repository at this point in the history
Update locations of constants in Google Analytics documentation
  • Loading branch information
jcassee committed Sep 16, 2015
2 parents 6ccc532 + b30503b commit 0889583
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/services/google_analytics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Tracking multiple domains

The default code is suitable for tracking a single domain. If you track
multiple domains, set the :const:`GOOGLE_ANALYTICS_TRACKING_STYLE`
setting to one of the :const:`analytical.google_analytics.SCOPE_*`
setting to one of the :const:`analytical.templatetags.google_analytics.SCOPE_*`
constants:

============================= ===== =============================================
Expand All @@ -87,7 +87,7 @@ Constant Value Description
============================= ===== =============================================

As noted, the default tracking style is
:const:`~analytical.google_analytics.TRACK_SINGLE_DOMAIN`.
:const:`~analytical.templatetags.google_analytics.TRACK_SINGLE_DOMAIN`.

When you track multiple (sub)domains, django-analytical needs to know
what domain name to pass to Google Analytics. If you use the contrib
Expand Down Expand Up @@ -159,7 +159,7 @@ when your render a template containing the tracking code::

The value of the context variable is a tuple *(name, value, [scope])*.
The scope parameter is one of the
:const:`analytical.google_analytics.SCOPE_*` constants:
:const:`analytical.templatetags.google_analytics.SCOPE_*` constants:

================= ====== =============================================
Constant Value Description
Expand All @@ -171,7 +171,7 @@ Constant Value Description
``SCOPE_PAGE`` 3 Defines page-level activity.
================= ====== =============================================

The default scope is :const:`~analytical.google_analytics.SCOPE_PAGE`.
The default scope is :const:`~analytical.templatetags.google_analytics.SCOPE_PAGE`.

You may want to set custom variables in a context processor that you add
to the :data:`TEMPLATE_CONTEXT_PROCESSORS` list in :file:`settings.py`::
Expand Down

0 comments on commit 0889583

Please sign in to comment.