• Resolved przemyslawk

    (@przemyslawk)


    Hello,

    I’m trying your wise analytics plugin…

    How to assign the name of a customer in my online shop to the corresponding visitor?

Viewing 1 replies (of 1 total)
  • Plugin Author Marcin

    (@marcinlawrowski)

    Hello,

    If you want to add more details to the current visitor execute the following PHP code somewhere in your logic:

    if (class_exists('\Kainex\WiseAnalytics\Container', false)) {
    $visitorsService = \Kainex\WiseAnalytics\Container::getInstance()--get(\Kainex\WiseAnalytics\Services\Users\VisitorsService::class);
    $visitor = $visitorsService->getOrCreate();
    $visitor->setFirstName("Jerry");
    $visitor->setLastName("Smith");
    $visitor->setEmail("[email protected]");
    $visitorsService->save($visitor);
    }
    Next time you check Wise Analytics stats browser this visitor will be displayed as Jerry rather than Visitor #12345

    Best regards

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.