Hi Neil,

Since google analytics is JavaScript, can you add a JavaScript like 

If (window.location.hostname = "myproddomain"){

}

Sent from my iPhone

On Mar 16, 2012, at 6:33 AM, Neil Fegen <[email protected]> wrote:

> Hi guys
> 
> We had an issue earlier this week where we imported a template from uor 
> development CMS into production and inadvertedly wrote over the Google 
> Analytics code with a development version.
> 
> Does anybody use any logic to ascertain whether the template is sitting in a 
> production or development environment? Even something simple like an option 
> element on the homepage to say 'Production' or 'Development', and then base 
> some other code on that?
> 
> I'd like to automate some of this to avoid changing paths when pushing code 
> live.
> 
> Thanks
> 
> Neil
> -- 
> You received this message because you are subscribed to the Google Groups 
> "RedDot CMS Users" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/reddot-cms-users/-/XynC54DazFYJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/reddot-cms-users?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en.

Reply via email to