Hi,
I'm having some issues implementing this guideline:
https://it.cornell.edu/confluence/add-google-analytics-confluence-space
I created page for the Google Analytics code.
I opened the wiki markup and pasted:
{html}
[gtag.js code copied from the Analytics property]
{html}
It all seems wrong though.
Problem #1 (see screenshot): {html} brackets are unrecognized macro (see screenshot). Obviously, the curly brackets are a macro character in Confluence, but why does the guideline state to put it in?
Problem #2 (see screenshot): same here, but this time because of the curly brackets in the data layer push script from gtag.js: {dataLayer.push(arguments);}
It looks like the html macro is not enabled on your Confluence.
This question is tagged with unknown hosting type, so…
if your host name is something like yourcompany.atlassian.net, then you are on Confluence Cloud and the only way to use Google Analytics will be thorough an app on the marketplace:
https://marketplace.atlassian.com/search?query=Google%20analytics%20reports
If not, you’re likely on Confluence Server and again you can use an app from the marketplace, or enable the Html macro and continue as is.
Thanks for you support @David at David Simpson Apps
I use Confluence Server 7.6.2.
I see three HTML Macros on our system:
Should I use one of those for HTML code? if not, which one should I use?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.