Vulnerability in EPiServer.Forms
Sorry, i'm sure this is a simple question but I just can't get it to work. I've never used EpiServer before and am evaluating it. I need to add the following tracking code () to the alloy test site so that each page is tracked. I tried adding it to a file and adding the following into c:\EPIServer\Sites\MyEpiServerSite\module.config but it doesn't appear in the page source.
Nothing i've tried seems to work. Any help would be really appreciated!
Why don't you just add it to the layout file?
I usually do like Henrik and then add one or two appsettings to turn the script on and off and set the id (if needed)
You should also propably wrap it with this so it won't be executed when the page are in edit mode
Thanks guys, appreciate it
And also probably you should not include them while developing locally, which makes another statement to the "if".
Which makes it perfect fit for conditional script rendering from FeatureSwitch library. :)