added conditions for tracking with ga
included additional_javascript_permitted method
added trend select method to admin pages