Groups
Groups
Sign in
Groups
Groups
Django users
Conversations
About
Send feedback
Help
Google analytics and request.resolver_match.url_name
23 views
Skip to first unread message
Alex Riina
unread,
Jul 7, 2017, 3:41:01 PM
7/7/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Django users
I'm getting familiar with google analytics and stumbled upon
https://developers.google.com/analytics/devguides/collection/analyticsjs/pages#modifying_page_urls
in which the google docs recommend regexing out some unique ids. In django, it's a lot simpler to get something like /user/account/ from /user/USER_ID/account/ by using
ga
(
'set'
,
'page'
,
"{{ request.resolver_match.url_name }}"
);
Is there any reason I should rethink that?
Reply all
Reply to author
Forward
0 new messages