[Last Call] Learn how to a build a cloud-first strategyRegister Now

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

Change script included in a java script file from ASPX.

I have the following code that is included in my master page via an include. I need to update the java script code on page load to include a couple of additional _gaq.push statements if a condition is met. Is this even possible?

*** MasterPage.Master snippit ***
  <script type="text/javascript" src="/include/script/google_analytics.js"></script>

*** END MasterPage.Master snippit ***

*** google_analytics.js snippit ***  

var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-525832-1']);
_gaq.push(['_setDomainName', '.framesdirect.com']);

*** END google_analytics.js snippit ***  
1 Solution
Michel PlungjanIT ExpertCommented:
Why shouldn't it be possible?
Kumaraswamy RCommented:
fsoehngeAuthor Commented:
provided  a link to documentation that started a chain that got me to where I needed to go.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now