Window Location Href How it work on shopify

New Member
5 0 0

Good morning to all, 


I use shopify for my shop

I wish to use the url of my web page as a value to a variable of an external script here is the code I use :

externalDatas: {
urlProvenance: window.location.href},


When I test my script no values are written.

Have you already encountered the problem or a solution to give me?