The path of a user to the site can be stored in and retrieved from localStorage.
npm install @macloud-developer/inflow-source
yarn add @macloud-developer/inflow-sourceimport { useInflowSource } from '~/compositions/common/inflow-source'
const inflowSource = useInflowSource(window.localStorage)
inflowSource.set(
currentDate, referrer,location.href
)
$ node --version
v16.13.2
$ npm --version
8.1.2