Skip navigation
Currently Being Moderated

How can I exclude js tracing code from chm ssl?

Apr 4, 2013 6:43 PM


I was able to include a script reference in my master pages for page tracking per post 13 in this topic

Now, I need to find a way to exclude this from my chm output. Conditional coding applied to the script statement doesn't work, as RH changes the conditional "wrapper" into a style= parameter inside the <script...> statement when I save the master page.

I also tried placing it between two empty paragraphs and then conditionally coding the whole thing, but without success. The paragraphs are coded correctly, but separately, and the <script...> statement gets the style parameter added.

Is there any way to exclude the <script ...> statement from the chm output?

Maybe creating a snippet with the <script...> statement, then add the snippet to the master page, then conditionally code that?

I'd be glad for any ideas...


  • Currently Being Moderated
    Apr 5, 2013 12:52 AM   in reply to TechDoc Jeanne

    Bummer that condition tags don't work.


    Can you amend the script so that it checks whether it's in a CHM? I believe the following works:


    if(typeof(_getRelativePath) != "function") {

         //In a CHM






    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points