Can't get Google Analytics code into my topics
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 19
- Joined: Tue Jan 14, 2020 6:44 pm
Can't get Google Analytics code into my topics
Re this topic: https://www.oxygenxml.com/doc/versions/ ... ytics.html
I've followed the instructions on this page, but I can't get the content of the googleAnalytics.xml file to appear in my topic html. Instead, I see:
...
C:\Users\<my_name>\analytics\html-fragments\googleAnalytics.xml
</body>
</html>
What am I missing?
I've followed the instructions on this page, but I can't get the content of the googleAnalytics.xml file to appear in my topic html. Instead, I see:
...
C:\Users\<my_name>\analytics\html-fragments\googleAnalytics.xml
</body>
</html>
What am I missing?
-
- Posts: 846
- Joined: Mon Dec 05, 2011 6:04 pm
Re: Can't get Google Analytics code into my topics
Hi Michael,
I've already replied on the comment you left on our User-Guide, so I am pasting here the reply.
This may occur if the XML that contains the HTML / Javascript resources is not well formed (for example, if the fragment contains special characters that could break well-formedness).
You can check if yout XML is well-formed, using the tool from oXygen XML. Just open the document in oXygen and go into the menu Document > Validate > Check Well-Fomedness.
As a workaround, you could embed the content into an XML comment. For more details on this technique, see the note from the Inline JavaScript or CSS Content subsection from the User-Guide.
Regards,
Costin
I've already replied on the comment you left on our User-Guide, so I am pasting here the reply.
This may occur if the XML that contains the HTML / Javascript resources is not well formed (for example, if the fragment contains special characters that could break well-formedness).
You can check if yout XML is well-formed, using the tool from oXygen XML. Just open the document in oXygen and go into the menu Document > Validate > Check Well-Fomedness.
As a workaround, you could embed the content into an XML comment. For more details on this technique, see the note from the Inline JavaScript or CSS Content subsection from the User-Guide.
Regards,
Costin
Costin Sandoi
oXygen XML Editor and Author Support
oXygen XML Editor and Author Support
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service