How to set up Custom Page Names/Paths

SessionCam uses the webpage URL as a way of referencing and searching a page within the SessionCam console. You can set your own page and pathnames (URLs) for use within the SessionCam console.

You may want to do this because:

  • 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 “www.domain.com/section/page.aspx”.

  • 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” and “www.domain.com/page-B.aspx”. You can then view reports for page A and page B, rather than reports with the data from the two pages combined.

  • SessionCam doesn’t include the query string data when referencing a page within the SessionCam console.

e.g. If your web page URL is “www.domain.com/load.aspx?page=PageA”, by default it would come into SessionCam as “www.domain.com/load.aspx”. Using the SessionCam Custom Page Name you can change this to: “www.domain.com/section/page.aspx”.

How to implement custom page names/paths

Place the following JavaScript on your webpage before the main SessionCam tag.

<script type="text/javascript">

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 they’re relevant to the page that the script is placed on.

If your website hostname was “http://www.domain.com”, the code above would generate the custom page/path name of “http://www.domain.com/section/landing-page”.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.