Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize email addresses for Google Enhanced Conversions #2668

Merged
merged 2 commits into from
Jan 14, 2025

Conversation

tcgilbert
Copy link
Contributor

@tcgilbert tcgilbert commented Jan 7, 2025

Rocket Mortgage is experiencing an issue with low match rates for Google Enhanced Conversions. Although the data is being sent successfully, the match rate is below 1%.

During troubleshooting, we identified that email addresses are not being normalized according to Google’s specifications when using the endpoint. While this discrepancy is unlikely to fully explain the low match rate, it is an issue worth addressing since normalization is outlined as a requirement in both our documentation and Google’s documentation.

Testing

hashing currently

  input: '[email protected]',
  hash: '87924606b4131a8aceeeae8868531fbb9712aaa07a5d3a756b26ce0f5d6ca674'


  input: '[email protected]',
  hash: '60b7750a8ee074c6a8b1a2e8178e4da4c5cffc5309b5236a12355b7b21a985d6'

  input: '[email protected]'
  hash: '06bfc6aa38674253530e62f2b585d63e3786cbb759b81b73df34ae80894d8813'

  input: '[email protected]'
  hash: 'f60f8555710483f6d082157013ca06779173aa5454a6f0255dcf2258f007a834'

hashing with this PR

  input: '[email protected]',
  hash: '87924606b4131a8aceeeae8868531fbb9712aaa07a5d3a756b26ce0f5d6ca674'

Stage Test

image

  // converts to lowercase before hashing
  input: '[email protected]',
  hash: '87924606b4131a8aceeeae8868531fbb9712aaa07a5d3a756b26ce0f5d6ca674'

Stage Test

image

  input: '[email protected]'
  hash: '06bfc6aa38674253530e62f2b585d63e3786cbb759b81b73df34ae80894d8813'

Stage Test

image

  // removes period before @ for google domains
  input: '[email protected]'
  hash: '06bfc6aa38674253530e62f2b585d63e3786cbb759b81b73df34ae80894d8813'

Stage Test

image

Note

There is currently a failing test for userLists. I didn't touch any of the functionality here, as this is also failing in main.

Copy link

codecov bot commented Jan 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.41%. Comparing base (1225556) to head (58e9ff5).
Report is 15 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2668   +/-   ##
=======================================
  Coverage   78.40%   78.41%           
=======================================
  Files        1032     1032           
  Lines       18564    18570    +6     
  Branches     3517     3519    +2     
=======================================
+ Hits        14555    14561    +6     
  Misses       2833     2833           
  Partials     1176     1176           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rvadera12 rvadera12 marked this pull request as ready for review January 13, 2025 19:24
@rvadera12 rvadera12 requested a review from a team as a code owner January 13, 2025 19:24
@joe-ayoub-segment joe-ayoub-segment merged commit f693384 into main Jan 14, 2025
14 checks passed
@joe-ayoub-segment joe-ayoub-segment deleted the STRATCONN-5394/google-enhanced-conversions branch January 14, 2025 10:08
@joe-ayoub-segment
Copy link
Contributor

joe-ayoub-segment commented Jan 14, 2025

Hi @rvadera12 PR deployed.
Are you OK verifying this in Production please (as Thomas has left the company)?

@rvadera12
Copy link
Contributor

Hi @rvadera12 PR deployed. Are you OK verifying this in Production please (as Thomas has left the company)?

Everything is working as expected in production

xitonix pushed a commit to autopilot3/segment-action-destinations that referenced this pull request Mar 16, 2025
…2668)

* normalize emails before hashing per google spec

* add tests for upload click conversion
julesbravo pushed a commit to Stodge-Inc/segment-destination that referenced this pull request Mar 28, 2025
…2668)

* normalize emails before hashing per google spec

* add tests for upload click conversion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants