jazzband / django-analytical

Analytics services for Django projects

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to set identity_func

likecodingloveproblems opened this issue · comments

In

def get_identity(context, prefix=None, identity_func=None, user=None):
identity_func is defined but in google_gtag there is not any way to set it?

That's weird, I don't see it either. Does gtag not track users with identities? If they do then you could submit a PR to patch this.

This is likely related to #189. Can you take a look?

Setting the identity is possible by context variable. Here is my attempt to better document how to do it: #219

Also the gtag provider is missing the prefix which is fixed in #217, for now only analytical_identity variable works.