django-analytical icon indicating copy to clipboard operation
django-analytical copied to clipboard

how to set identity_func

Open likecodingloveproblems opened this issue 4 years ago • 3 comments

In https://github.com/jazzband/django-analytical/blob/37009f2e08e78d41ddc1bdd1e940f195c3ae4352/analytical/utils.py#L64 identity_func is defined but in google_gtag there is not any way to set it?

likecodingloveproblems avatar Feb 22 '21 18:02 likecodingloveproblems

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.

SilverStrings024 avatar Jul 12 '21 17:07 SilverStrings024

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

bittner avatar Jul 13 '22 15:07 bittner

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.

PetrDlouhy avatar Jul 14 '22 10:07 PetrDlouhy