Add optional analytics code view to bottom of main layout