authenticateVisitor method

  1. @override
dynamic authenticateVisitor(
  1. String pVisitorId
)
override

Implementation

@override
authenticateVisitor(String pVisitorId) {
  if (visitor.config.decisionMode == Mode.DECISION_API) {
    if (visitor.anonymousId == null) {
      visitor.anonymousId = visitor.visitorId;
      visitor.visitorId = pVisitorId;
    }

    DataUsageTracking.sharedInstance()
        .processTSXpc(CriticalPoints.VISITOR_AUTHENTICATE.name, this.visitor);
  } else {
    Flagship.logger(Level.ALL,
        "AuthenticateVisitor method will be ignored in Bucketing configuration");
  }
}