Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi.
I've seen that to send user id attribute the user id is sent using a hash in order to don't show info which can identify the user.
Could the code of hash generation be moved to a function?
This function can be used by modules which depends of google_analytics for their own features.
Attached a patch which moves the code to a function.
Can you review this? Thanks!
Comment | File | Size | Author |
---|---|---|---|
#9 | google_analytics-user-id-function-9.patch | 1.43 KB | omarlopesino |
#6 | google_analytics-user-id-function-6.patch | 1.38 KB | omarlopesino |
Comments
Comment #2
omarlopesinoAttach new patch discarding changed made by module download.
Comment #3
omarlopesinoComment #4
omarlopesinoComment #5
omarlopesinoUpdate patch adding coding style.
Comment #6
omarlopesinoComment #7
hass CreditAttribution: hass commentedOk, but this requires a D8 patch first.
Comment #8
hass CreditAttribution: hass commentedComment #9
omarlopesinoAttached new patch for drupal 8.
Comment #10
omarlopesinoComment #13
hass CreditAttribution: hass commentedMany thanks for this clean patch and code style. Happens too rare :-).
Comment #14
hass CreditAttribution: hass commentedCommitted to Piwik, too.