I Robot - Sitecore JSS visitor identification

While working on a Sitecore JSS solution that interacts with our Sitecore solution that hosts some api endpoints for us and add .net session state to cache some user bound data we noticed some unexpected behavior with respect to the session state on our test environments. Our session was configured to expire after 20 minutes of idleness, but no matter what our behavior was: idle or active our session seem to be reset much faster.
After much debugging we couldn't find anything wrong with our own code, so we started considering options where maybe Sitecore could influence this.
One of the suspects was Sitecore's robot detection mechanism that had given us trouble around session expiry in the past.
We started by disabling robot detection. And this indeed seemed to resolve our session disappearing issue. So it was confirmed, we were identified as a robot.



Further information proved that indeed, when classified as a robot visitor, Sitecore analytics settings set the session expiry to 1 minute, which explains our disappearing session data.

Thanks to the awesome community, we got suggestions to enable 'VisitorIdentification' on our application. We didn't do this before as we were not actively using analytics in our solution yet, and were using a XM only configuration.
Enabling VisitorIdentification is something that is recommended to be turned off for XM only configuration according to the current JSS sample apps.
But as it turns out, the VisitorIdentification component exists to actually identify the difference between a human and a robot. The js file it references detects for example mouse movements on the screen, and uses that information to classify the user to not be a robot.

So if you use session state, and maybe it is just always a best practice, as I cannot think of scenario's where you want to risk these side effects, to add the visitor identification component to each of your solutions.

In Sitecore JSS to add the visitor identification component take the following steps (I used Angular, but I imagine for React or Vue, steps are similar):

  1. In your routing module ensure the VisitorIdentificationComponent is imported
  2. Ensure the VisitorIdentificationComponent itself as it is bundled into the Angular sample app is part of your app
  3. Add the component to your layout: <app-visitor-identification></app-visitor-identification>

And there you go, now you will no longer be wrongly identified as a robot.
Alternative approaches would be to add your ip-address ranges where you would be testing your application from into the ExcludeRobots config.





Reacties

  1. Is this a paid style or did you modify it yourself? Either way keep up the pleasant quality writing, it is rare to see a great site such as this one these days.
    Visitor Management System
    Visitor Management System Dubai
    Visitor Management Software Dubai
    Visitor Management System UAE
    Visitor Management Software
    Visitor Management App

    BeantwoordenVerwijderen
  2. Integrated Solutions:To keep the information of the system secure and safe from risks and threats, integrated solutions are provided to make the data being unaffected from malicious hacks and attacks. Securium Solutions integrated the best User Behavior Analytics in Dubai.

    BeantwoordenVerwijderen
  3. Museumpoker agen poker online terbaik Indonesia deposit termurah hadir memberikan layanan taruhan permainan online hingga 11 jenis permainan. Rating kemenangan tertinggi tanpa adanya robot serta admin.

    11 Permainan Dalam 1 Akun
    * Poker
    * DominoQQ
    * Bandar Ceme
    * Ceme Keliling
    * Capsa Susun
    * Super10
    * Omaha
    * Blackjack
    * Superbull
    * Capsa Susun (New Versi)
    * QQ Spirit

    Promo Terbaru MuseumPoker
    - Bonus Deposit Harian
    - Deposit Via Pulsa Telkomsel & XL / Axis
    - Bonus Deposit New Member 20%
    - Bonus Mingguan 0.5%
    - Bonus Jackpot

    Daftar Poker Online

    Kontak Resmi
    WA : +6282267932581
    LINE : museumpoker
    Telegram : +6282267932581

    poker online Indonesia via gopay

    Agen Poker Online Resmi

    Situs IDN Poker Resmi

    Daftar Club388

    BeantwoordenVerwijderen

  4. Situs Judi Online Terpercaya Nomor 1 TOP Di Indonesia Lohhh....

    Permainan Judi Online Lengkap Lainnya :
    » Sportsbook ( SBOBET / NOVA88 / CBET )
    » Casino Online
    » Togel Online
    » Bola Tangkas
    » Poker Online
    » Domino QQ
    » Slot Online Lengkap
    » Dan Masih Banyak lainnya,..

    Mau deposit,tapi tidak ad rekening ? santai bosku di sini tersedia deposit pakai PULSA,GOPAY,OVO,LINKAJA !!!

    Untuk Informasi Selengkapnya, Bisa Hubungi Cs BvGaming ya.
    WA : +62812-2222-995

    BeantwoordenVerwijderen
  5. Main Slot Online Pakai Gopay Makin Untung!! Dapatkan Bonus Deposit 5% Setiap Harinya. Daftar Sekarang di BOLAVITA.

    Situs Judi Slot Online Deposit Gopay Terpercaya

    Minimal Deposit 50 Ribu
    Minimal WD 50 Ribu

    Menerima Deposit Via PUlsa, E-money ( OVO, DANA, GOPAY, LINKAJA)
    d
    DAFTAR Sekarang JUGA !!!

    LINK DAFTAR : Judi Sabung Ayam SV388 Terbaru

    Kontak WHATSAPP : 0812-2222-995

    BeantwoordenVerwijderen
  6. Awesome information here I am so gleeful when i found your weblog while I was researching on Bing for something else,but believe me the way you interact is literally awesome I do respect that so much. I will instantly get your rss and stay informed of any updates you make and as well take the advantage to share some vital information regarding. how to get dry seahorse
    cow gallstone for sale
    japanese sea cucumber sushi
    dried seahorse
    kopi-luwak-coffee-for-sale
    dried fish maw

    BeantwoordenVerwijderen

Een reactie posten

Populaire posts van deze blog

Sitecore campaigns and UTM tracking unified

Sitecore JSS - Sitecore first