Skip to content

Instantly share code, notes, and snippets.

@mindbreaker
Last active July 26, 2017 10:03
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 mindbreaker/bc2a4fd9558a7e8974d5af882bdb9e66 to your computer and use it in GitHub Desktop.
Save mindbreaker/bc2a4fd9558a7e8974d5af882bdb9e66 to your computer and use it in GitHub Desktop.
Google Tag Manager Variablen fürs Download-Tracking: Dateiname (katalog.pdf) und Dateierweiterung (pdf)
function() {
return {{Click URL}}.split('.').pop();
}
function() {
return {{Click URL}}.replace(/^.*[\\\/]/, '');
}
@mindbreaker
Copy link
Author

mindbreaker commented Jul 26, 2017

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