• Resolved renaisonp

    (@renaisonp)


    Hello,

    The script below allowing to not display the Exit intent if the visitor consults more than one page does not work:

    var renaisonp_page_view_data = localStorage.getItem(‘brave_page_visited’);
    renaisonp_page_view_data = renaisonp_page_view_data ? JSON.parse(renaisonp_page_view_data) : [];
    if(renaisonp_page_view_data.length > 1){
    var selectedPopupStep = document.querySelector(‘#brave_popup_78847__step__0 .brave_popup__step__’+window.brave_currentDevice)
    selectedPopupStep.dataset.open = true;
    }

    The page I need help with: [log in to see the link]

Viewing 3 replies - 16 through 18 (of 18 total)
  • Plugin Author Brave

    (@getbrave)

    @renaisonp Just checked the whole process on your site. First went to frontpage, and then a page inside which has the popup “Exit intent + devis formulaire toutes pages articles”. But even though I visited the frontpage, the popup still showed up on the second page. Which means the custom code is not working. Also there are some issues due to wprocket’s delay execution script. Can you please get in touch with us through contact@getbrave.io . We need to examine the issue by logging in to your site.

    Thread Starter renaisonp

    (@renaisonp)

    The problem may be due to the fact that the Exit intent is not programmed to be displayed on the home page, therefore not counted?

    Plugin Author Brave

    (@getbrave)

    Not really. the custom code does not care about that. Brave saves how many pages a visitor visited inside the browser. The code checks if the count is more than 1, If it is, it tries to disable the popup.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Display script’ is closed to new replies.