Setting piwik URL based on environment in single page application


(amit) #1

How can we setup piwik url based on environment(development, production…).


(Lukas Winkler) #2

Hi,

The Piwik URL is just a normal Javascript variable, so you can just set it depending on which environment you are in.

I am doing it like this on my website: