Skip to main content
Apr 30, 2013 5:04 PM UTC
Question

How do I inject Google Analytics code into my topics?

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 is closed to new replies. Start a new post to keep the conversation going.

6 replies

Peter Grainge
Community Expert
Community Expert
Apr 30, 2013 5:33 PM UTC

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

Translate
Use the menu (bottom right) to mark the Best Answer or Highlight particularly useful replies. Found the answer elsewhere? Share it here.
Apr 30, 2013 6:09 PM UTC

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.

Translate
Deb Sauer
Inspiring
Dec 2, 2014 1:41 PM UTC

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

Translate