Ability to Hash Visitor Email using SHA256
-
Many social pixels want you to provide an email address that’s hashed, typically using SHA256.
I manually updated frontend.php to do the following, but it would be overwritten when you push out an update. So, having this ability as a checkbox or something in Admin would be a nice feature.
Here’s the code I’ve implemented on lines 133-135:
if ( $gtm4wp_options[ GTM4WP_OPTION_INCLUDE_USEREMAIL ] ) { $dataLayer['visitorEmail'] = ( empty( $current_user->user_email ) ? '' : hash('sha256', ($current_user->user_email)) ); }
- The topic ‘Ability to Hash Visitor Email using SHA256’ is closed to new replies.