Skip to content

basic mixpanel tracking  #224

@serenamm

Description

@serenamm

Hi!

Thanks so much for creating this repo. I'm having trouble doing basic mixpanel tracking.

I've set up my template html file to look like this:

{% load analytical %}
{% load mixpanel %}
<!DOCTYPE ... >
<html>
    <head>
        {% analytical_head_top %}

        ...

        {% analytical_head_bottom %}
    {% mixpanel %}
    </head>
    <body>
        {% analytical_body_top %}

        ...

        {% analytical_body_bottom %}
    </body>
</html>

and my settings.py file looks like:

INSTALLED_APPS = [
    ...
    'analytical',
    ...
]

I also added my MIXPANEL_API_TOKEN to settings.py as well, and I have django-analytical==3.1.0 in my requirements.txt file.

I deployed these changes to a test website, so it's in prod, not dev.

I think I must be missing something -- should I be making any other code changes to enable tracking?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions