jazzband/django-analytical

how to set identity_func

likecodingloveproblems opened this issue · 3 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.