FHIR Chat · analytics support · ig publishing requirements

Stream: ig publishing requirements

Topic: analytics support


view this post on Zulip John Moehrke (Jan 24 2022 at 16:52):

Is there a consistent way to add analytics support to an IG build / publication? For example google analytics script and ID. I can certainly add it as a build footer, but wondered if there was already some instrumentation in place that I could use.

view this post on Zulip Lloyd McKenzie (Jan 24 2022 at 16:58):

@Eric Schmitt

view this post on Zulip Lynn Laakso (Jan 24 2022 at 17:22):

as it's not a technical correction, to update a published IG you'd need a publication request and I'd have to find out from Grahame where/how to add it safely. to add it to the publisher we'd have to check with Grahame or ? Mark I?

view this post on Zulip Lloyd McKenzie (Jan 24 2022 at 17:24):

We probably already have analytics support for stuff hosted under hl7.org, so it may be that nothing extra is needed.

view this post on Zulip Eric Schmitt (Jan 24 2022 at 17:39):

@John Moehrke Hi John, We have a global site ID and tag for google analytics for hl7.org that is viewable under the webmaster google analytics account. Currently the only thing being tracked by google is /fhir/search.cfm. Do you want to add the code snippet to an IG?

view this post on Zulip Eric Schmitt (Jan 24 2022 at 17:39):

The "only" thing under /fhir I meant.

view this post on Zulip Elliot Silver (Jan 24 2022 at 18:54):

I don't see anything in John's request indicating that this is for HL7-published IGs. I think this is a more general question: "Is there a place we can add the Google trackers so they are picked up by an IG template?"

view this post on Zulip John Moehrke (Jan 24 2022 at 19:39):

I am NOT asking about HL7.. I am asking about the IG publication tooling.. aka, I am using the tooling in IHE, and we want to add a google analytics stuff to IGs we publish. So, as Elliot points out, this is about the IG publisher or template; not about HL7 publication.

view this post on Zulip John Moehrke (Jan 24 2022 at 19:40):

@Eric Schmitt yes, that is what I want to do for IHE... yes, IHE has the same google search analytics; but we want details on use of IGs that happen without use of search. Thus adding the google analytics script/ID to each page.

view this post on Zulip John Moehrke (Jan 24 2022 at 19:42):

I can do this with the includes of a footer; just wanted to know if there as a more automated way.

view this post on Zulip Eric Schmitt (Jan 24 2022 at 19:49):

@John Moehrke ok John. Sorry for my misunderstanding. I can not offer an automated option.

view this post on Zulip Elliot Silver (Jan 24 2022 at 20:05):

I can not offer an automated option.

I read that as an "automated opinion" and thought "That's ok, there's plenty of others here who do that."

view this post on Zulip Jose Costa Teixeira (Jan 24 2022 at 20:06):

:eyes:

view this post on Zulip Jose Costa Teixeira (Jan 24 2022 at 20:07):

I don't know what the google analytics content is , so I don't see where is the automation opportunity. Adding something to the pages would be in the template header or footer

view this post on Zulip John Moehrke (Jan 24 2022 at 20:15):

Jose, i only asked because every .html page in the publication does have a comment at the bottom

<!-- JS and analytics only. -->

which seems to indicate to me that the IG publisher is adding a section specifically for analytics.

view this post on Zulip John Moehrke (Jan 24 2022 at 20:16):

also

   <!-- Analytics Below
  ================================================== -->

view this post on Zulip John Moehrke (Jan 24 2022 at 20:16):

so there seems to be some instrumentation in the IG publisher

view this post on Zulip Jose Costa Teixeira (Jan 24 2022 at 20:18):

oh that. I don't know how that works

view this post on Zulip John Moehrke (Jan 24 2022 at 20:18):

I don't see anything in the IG publisher config https://confluence.hl7.org/pages/viewpage.action?pageId=66938614

view this post on Zulip John Moehrke (Jan 24 2022 at 20:19):

Might simply be static text for easy bulk replace... I can work with that.

view this post on Zulip John Moehrke (Jan 24 2022 at 20:19):

but, might be some parameter that is not yet documented that I could set and it would dump in google analtyics script and ID.

view this post on Zulip John Moehrke (Jan 24 2022 at 20:19):

else I just add this to the IHE template as yet another thing in the include footer

view this post on Zulip Lloyd McKenzie (Jan 25 2022 at 00:36):

There may be, but I've never used it. May be best to ask @Grahame Grieve when he's back.

view this post on Zulip Grahame Grieve (Jan 27 2022 at 03:21):

I put it in there as a place holder for doing something about this on behalf of an earlier HL7 webmaster, but we never finished it out.

view this post on Zulip John Moehrke (Jan 27 2022 at 13:54):

okay, then do we need an issue to help complete the work?

view this post on Zulip John Moehrke (Jan 27 2022 at 13:55):

in the meantime, the include footer would seem to work... right?

view this post on Zulip Lloyd McKenzie (Jan 27 2022 at 18:25):

It should

view this post on Zulip John Moehrke (Jan 27 2022 at 18:29):

I created an Ig publisher github issue -- https://github.com/HL7/fhir-ig-publisher/issues/383

view this post on Zulip John Moehrke (Feb 08 2022 at 13:24):

I am about to add the IHE analytics to an IG I am drafting for IHE. But wondered if it would be a problem for google analytics with an IHE ID to show up on build.fhir.org in the ci-build. I would guess the analytics results would actually be useful to show IHE how often someone goes to build.fhir.org vs profiles.ihe.net... but got to thinking that having an IHE google analytics identifier appearing on build.fhir.org might be a governance (of build.fhir.org) issue? I am not sure, so I figured I would ask.

view this post on Zulip Lloyd McKenzie (Feb 08 2022 at 14:34):

@Grahame Grieve

view this post on Zulip Grahame Grieve (Feb 08 2022 at 20:11):

it

view this post on Zulip Grahame Grieve (Feb 08 2022 at 20:11):

it's fine with me

view this post on Zulip John Moehrke (Feb 08 2022 at 21:36):

okay, then soon we will see if doing it breaks everything.. ;-)


Last updated: Apr 12 2022 at 19:14 UTC