Page viewed

<script>
    function onPageViewed() {
        window._fwn.analytics.pageViewed({
            ext_customer_identifier: '123'
        });
    }
    
    //Call the function when the user first lands on the page
    document.addEventListener('DOMContentLoaded', function() {
        onPageViewed();
    });
</script>

Note: The page viewed function expects the following input shape:

export interface PageViewedData {
  ext_customer_identifier?: string
}

Last updated