How to do debugging on page

Just add #sg-debug / ?sg-debug / & sg-debug to your websites url and SiteGainer will output complete logs and objects in the console. If you want this feature restricted – please contact support.

It’s also possible to run debug mode by running a function in the console (debug mode via console adds a cookie, so it has to be turned off):


sitegainer.debug(1); // Run debug mode 
sitegainer.debug(0); // Quit debug mode 

You can also use the SiteGainer objects to get a deeper insight:

Information about the projects / goals and more, write in console:

sg_ws

Information about the user visiting the page (you), write in console:

sg_user

Information about what is going to be sent to SiteGainer server on unload, write in console:

sg_tracker