Created
February 2, 2022 12:25
-
-
Save Gummiees/f4e3e0535bd0a99337c276faf7c896fe to your computer and use it in GitHub Desktop.
Checks whether the page the user comes from was the current one or not. This does not work if the user came by typing the URL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if(!document.referrer.includes(window.location.host)) { | |
this.analyticsSink.logFirstLoadEvent(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment