Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Customer Attributes - AuthState.AUTHENTICATED Failed

edwinamirian
Level 1
Level 1

Hello,

Whenever I try to set a customer ID on our site I get the following error:

visitor.setCustomerIDs({

"testid": { "id":"123456789", "authState":Visitor.AuthState.AUTHENTICATED }

});

VM4662:3 Uncaught TypeError: Cannot read property 'AUTHENTICATED' of undefined

    at <anonymous>:3:51

Target: mbox.js v60

Visitor API: v2.4

AppMeasurement: v1.6

This only occurs on one of our subdomains. This happens to be the subdomain that hasn't been updated to at.js and hasn't been updated to the latest app measurement version.

Anyone have any ideas? I'm firing the setCustomerID function after the page has loaded, so Target, Analytics, and Visitor API have already loaded.

My best guess is that I just need to upgrade appmeasurement and Target.

2 Replies