Skip to content

Instantly share code, notes, and snippets.

@measureschool
Last active January 10, 2023 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save measureschool/623a0507d3498b02d54a28b12932c2e2 to your computer and use it in GitHub Desktop.
Save measureschool/623a0507d3498b02d54a28b12932c2e2 to your computer and use it in GitHub Desktop.
Redirect detection in GTM
function(){
return window.performance.getEntriesByType("navigation")[0].type == 'reload' ? false : true;
}
@alewolf
Copy link

alewolf commented Jan 7, 2023

Hi Julian

You misspelled "reload" ("relaod" instead of "reload").

@measureschool
Copy link
Author

thanks. Corrected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment