Setting Up Custom Page Names/Paths
SessionCam uses the web page URL as a way of referencing and searching a page within the SessionCam console. Sometimes, this may not be appropriate, so you can set your own page (and path) names (urls) for use within the SessionCam console.
Some examples of why you may want to do this is are show below:
- It may make it easier to read
e.g. If your web page URL is www.domain.com/abcdef/xyz/123.aspx, you could change it to
- You can distinguish between pages that share the same URL
e.g. If page A and page B both use the URL of www.domain.com/page.aspx. you could change it to
www.domain.com/page-A.aspx & www.domain.com/page-B.aspx.
This would then mean you could then view reports for page A and page B, rather than reports with the data from the 2 pages combined.
- SessionCam does not include the query string data when referencing a page with-in SessionCam.
e.g. If your web page URL is www.domain.com/load.aspx?page=PageA, by default it would come into SessionCam as
So, using the SessionCam Custom Page Name you can change this to:
Implementing custom page names / paths
if(!window.sessioncamConfiguration) window.sessioncamConfiguration = new Object();
//Modify this line to populate the path (for example "checkout" or "products") sessioncamConfiguration.SessionCamPath = "section";
//Modify this line to populate the paganame (for example "step1" or "complete")
sessioncamConfiguration.SessionCamPageName = "landing-page"; </script>
The SessionCamPath and SessionCamPageName values then need to be set so that it is relevant to the page that the script is placed on.
For example, using the code above, if your website hostname was http://www.domain.com, the custom page/path name generated would be: