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

Identifying authenticated users not working for google analytics

Open ArijitWeird opened this issue 7 years ago • 5 comments

Hello,

Gone through the docs and understand that by default ANALYTICAL_AUTO_IDENTIFY is set to True . I have already integrated django analytical with my project and it has been working fine.. Lately I tried to check for tracking autheticated users by turning on Enable the User-ID feature in my google analytics. But cant see anything in my new userid view. Anything am i missing??

ArijitWeird avatar Jan 30 '18 23:01 ArijitWeird

@ArijitWeird Can you try to figure out in the related GA documentation which settings (in JavaScript code, probably) are required to make this work? django-analytical is really just injecting those code pieces as text strings, it should be easy to fix (if needed).

bittner avatar Aug 20 '18 17:08 bittner

Also, please make sure you understand the meaning of that flag, and you verified your Django project with the note in the related section of our documentation. Thanks! :+1:

bittner avatar Aug 20 '18 17:08 bittner

Is this issue still relevant? Could you figure out whether this was a bug, or rather an unclarity in the docs?

bittner avatar Jan 11 '19 23:01 bittner

I can confirm it is not working. Both mentioned context_processors are set, but still no user is identified.

Function get_identity() is not being called from within GA implementation.

jmfederico avatar Sep 10 '19 18:09 jmfederico

Can you compare the JavaScript code our implementation uses with the one of the current docs of Big Google? Maybe this is out-of-date here and needs to be aligned again?

Explanation: This library is not doing much more than cleanly providing the JavaScript code the service providers suggest in their documentation.

bittner avatar Sep 12 '19 06:09 bittner