Skip to main content
April 30, 2013
Question

How do I inject Google Analytics code into my topics?

  • April 30, 2013
  • 1 reply
  • 1265 views

Using RH10, building merged WebHelp, and we've just been asked to tag each topic for Google Analytics. When we were doing this for Webtrends and RH9, we were forced to inject the code as a post process with a perl script.

Has RH10 made any advances in that regard?

Thanks

This topic has been closed for replies.

1 reply

Peter Grainge
Community Expert
Community Expert
April 30, 2013

The Find and Replace in Files has improved as long as you avoid a nasty bug. Setting up a search based on Starts With and Ends With is fine. Use the Must Include and kiss your project goodbye.

You obviously have other ways of doing it and I would be inclined to stick with what you know and trust.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
April 30, 2013

Actually the process is easier than that. I can embed the code in my Master page and voila! Instant GA coding when I generate the output.

Deb Sauer
Inspiring
December 2, 2014

Hi

Were you able to get the GA script to be embedded in all of your RH topics by putting it into the master page (htt)? I have tried this and it is not working. Any tips and/or tricks would be very helpful!

Thanks

Deborah