Closed Bug 1340071 Opened 7 years ago Closed 7 years ago

UPS "register now" button doesn't work with Tracking Protection

Categories

(Web Compatibility :: Site Reports, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: julienw, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: tp-base)

STR:
1. Enable tracking protection.
2. Go to https://www.ups.com/one-to-one/login
3. Click on "register now".

Nothing happens and we get this Javascript error:

ReferenceError: dcsMultiTrack is not defined  ssoJul15.js:274:4
	regNowButtonClick https://www.ups.com/javascript/ssoJul15.js:274:4
	onclick https://www.ups.com/one-to-one/login:1:12
Hey Karl, is it a webcompat bug ?
Flags: needinfo?(kdubost)
Julien,

which kind of Tracking Protection Strict or Normal.

The register Now goes to 
https://www.ups.com/one-to-one/register?WT.si_n=MCEUpsell&appid=sso&sysid=myups&returnto=https%3A%2F%2Fwww.ups.com%2Fcontent%2Fus%2Fen%2Findex.jsx

<div class="btnBar"> 
  <input name="regnow" 
         value="Register Now" 
         class="btnArw" 
         onclick="javascript:regNowButtonClick(true, 'LoginFacebook', 'regNowAction', 'X', false, true);" type="button">
</div>


which is 

function regNowButtonClick(dcsEnabled, formName, fieldName, fieldValue, isMyChoice, sinParamNotFound)
{
        var theForm = document.forms[formName];

	//if WT.si_n param found in request url, do not call dcsMultiTrack 
	if (sinParamNotFound == false) {
                //alert("WT.si_n found in request");
                theForm.elements[fieldName].value = fieldValue;
                submitForm(formName, fieldName, fieldValue);
		return;
	}

        if (dcsEnabled == true) {
		if (isMyChoice == true) {
			//alert("regNowButtonClick Register Now for MyChoice fire");
			dcsMultiTrack('DCS.dcsuri','SSO_RegisterButton','WT.ti','/SSO_RegisterButton','WT.dl','99','WT.si_n','SSOMCE');
		}
		else {
			//alert("regNowButtonClick Register Now fire");
			dcsMultiTrack('DCS.dcsuri','SSO_RegisterButton','WT.ti','/SSO_RegisterButton','WT.dl','99','WT.si_n','MCEUpsell');
		}
                setTimeout(function(){
                        theForm.elements[fieldName].value = fieldValue;
                        submitForm(formName, fieldName, fieldValue);
                }, 500);
        }
        else {
                //alert("regNowButtonClick dcsEnable = false");
                theForm.elements[fieldName].value = fieldValue;
                submitForm(formName, fieldName, fieldValue);
        }
}



Searching for the dcsMultiTrack

  function analyticsEvtHandler(e, data) {
    window.dcsMultiTrack.apply(this, data)
  }


So they tied the button to analytics which are probably part of the blocking list of tracking protection.

I don't think this is a webcompat issue as it is working without TP :/
We know sites might break with TP, but that's also the freedom of websites to make the decision to track something.

in their JS we can find email addresses for contacting them, if you want to tell them about the analytics + tracking protection.

  var swfApps = new Array;
  var preferredPhone = '1-800-877-1497';
  var worldShipPhone = '1-888-553-1118';
  var preferredTechSupportPhone = '1-877-289-6418';
  var preferredEmail = 'preferred.us@ups.com';
  var strategicEmail = 'strategicsupport@ups.com';
  var mailTo = 'mailto:';
  var mailSubject = '?Subject=Help with my UPS Account';
Flags: needinfo?(kdubost)
Blocks: tp-breakage
Keywords: DevAdvocacy
Priority: -- → P5
Whiteboard: tp-base
Component: Tracking Protection → Desktop
Keywords: DevAdvocacy
Priority: P5 → --
Product: Firefox → Tech Evangelism
Tested on 58.0a1 with TP enabled. I was able to click and navigate through all headers and links. I was unable to find a "register now" option on this page [although login and sign up work]:

https://www.ups.com/one-to-one/login

The direct link to the register page also seems functional.
Indeed, I think this works now
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Product: Tech Evangelism → Web Compatibility
You need to log in before you can comment on or make changes to this bug.