DTM location of JQuery MD5 generator for userID? | Community
Skip to main content
Level 2
April 3, 2018
Solved

DTM location of JQuery MD5 generator for userID?

  • April 3, 2018
  • 4 replies
  • 2087 views

Hi all, We had a tech who is no longer here install a JQuery action to encrypt the userID collected from the log-in box on our site. I have searched DTM, the source code of our website and in Analytics and can't for the life of me find where this snippet of code lives. I've looked in DTM under the userID rules and even in the custom code editors for the each rules and the entire library.

Looking at the source code of my site, I can find the code listed under the analytics.js file. When opening this file I find the code written as

// user > acountName and userId

    jQuery('#login-button').click(function() {

        digitalData.user.accountName = jQuery('#login-select option:selected').text();

        var userId = md5(jQuery('#login-username').val()).toUpperCase();

        digitalData.user.userId = userId

        if (debug) console.debug(userId);

        _satellite.track("login");

Can anyone help and at least point me in a direction to search for it?

Best,

Scott

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by jantzen_b

Assuming your rules reference a data element, the code could be inside the data element where the User ID is picked from the page and then encrypted.

4 replies

Rydal_Williams
Level 4
April 13, 2018

Hi,

The source of that function could be anywhere, it seems its the javascript md5 library, If you've search all your local scripts and can't find "md5" then its probably loaded by url (md5.min.*) or hard coded in DTM. Trying using chrome dev tools to find it, if all else fails, send me the link and I'll locate it for you.

jantzen_b
Adobe Employee
jantzen_bAdobe EmployeeAccepted solution
Adobe Employee
April 16, 2018

Assuming your rules reference a data element, the code could be inside the data element where the User ID is picked from the page and then encrypted.

sgaulin1Author
Level 2
April 18, 2018

Thank you for all the help. I will look in your suggested places and may take you up on the offer if I can't find it myself.

Best,

Scott

sgaulin1Author
Level 2
April 18, 2018

Thank you for the assistance. I will look for it there.