Added tracking code to shared layout