Created
June 14, 2017 09:53
-
-
Save jice-lavocat/1482cc18b88a53646fd2040609bc3fd5 to your computer and use it in GitHub Desktop.
Parse and reuse URL variable in GTM
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
function() { | |
var url = new URL({{Page URL}}); | |
var final_price = url.searchParams.get("final_price"); | |
return (final_price/100); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment