Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

How to leave out some script from page if running page locally

$
0
0

Hi,

I have some Google analytics code on my pages. It is in a layout MVC tempate which my pages use. When I run in Visual Studio, I think the code is triggering a hit which I do not want. I only really want it on the published live version.

How would I prevent this from happening?


Thanks,


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>