Jump to content

remove analytics tracking if admin/employee logged in


Recommended Posts


I want to check if the admin/employee is logged in the front office so that I dont include the analytics tracking (I dont want to track my and my employees navigation.

in the init script of the front office I have added
$cookies = new Cookie('psAdmin'); $cookie->id_empl = $cookies->id_employee;

do that i can ceck if id_empl has a value. But this value is not set.

I want to know if the admin is logged in so that I can include google analytics or not. I do not want to track click from my employees when they click on add to carts or navigate round the site as this will distort the tracking numbers.

Doe anyone have any advice on this.


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More