just copy javascript code provided by google for tracking, and paste it on the head section of the page-structure.xsl, make sure to put "=" in async for it to work otherwise it will break your system. it should be like this:
<!-- Google tag (gtag.js) --> <script async="async" src="https://www.googletagmanager.com/gtag/js?id=G-_ _ _ _ _"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-__ _ _ _ _'); </script> regards On Wednesday, July 27, 2022 at 4:19:10 PM UTC+3 Cristobal Caris wrote: > Hi Alejandro, > Could you help me by sharing an example code please, we have a DSpace 6 > Version ? I would greatly appreciate it. > > Thanks! > > El mié, 13 jul 2022 a la(s) 11:38, cristob...@gmail.com ( > cristob...@gmail.com) escribió: > >> Hi Alejandro, >> Could you help me by sharing an example code please? I would greatly >> appreciate it. >> >> Thanks! >> >> >> El jueves, 9 de junio de 2022 a la(s) 07:56:22 UTC-4, >> alejandr...@gmail.com escribió: >> >>> Hello, >>> I usually add Google Analytics code in the footer of Dspace pages. >>> What additional support are you looking for? >>> >>> On Wed, Jun 8, 2022 at 1:52 PM 'Tim Donohue' via DSpace Technical >>> Support <dspac...@googlegroups.com> wrote: >>> >>>> Hi James, >>>> >>>> We recently had a ticket submitted about this for DSpace 7: >>>> https://github.com/DSpace/dspace-angular/issues/1672 >>>> >>>> The quick answer is that GA4 is not currently supported, but I'd expect >>>> it to be supported in DSpace 7 prior to July 2023. (Currently, we only >>>> support Universal Analytics as you pointed out.) >>>> >>>> That said, the ticket is currently waiting on a volunteer developer, so >>>> if anyone reading this is interested, please let us know on the ticket. >>>> Otherwise, I'll do my best to find a volunteer to solve this in either 7.4 >>>> or 7.5 (both of which will be released prior to July 2023). >>>> >>>> Tim >>>> >>>> On Wednesday, June 8, 2022 at 10:18:30 AM UTC-5 james.m...@gmail.com >>>> wrote: >>>> >>>>> p.s. Universal Analytics will stop processing new hits on July 1, 2023 >>>>> (link >>>>> <https://support.google.com/analytics/answer/11583528?hl=en&ref_topic=10094551>). >>>>> >>>>> If GA4 isn't currently supported in DSpace, is there a plan to support it >>>>> in the future? >>>>> >>>>> On Wednesday, June 8, 2022 at 10:14:23 AM UTC-5 james.m...@gmail.com >>>>> wrote: >>>>> >>>>>> Hello, >>>>>> >>>>>> We are transitioning from Google's Universal Analytics (UA) to Google >>>>>> Analytics 4 (GA4) across our web properties. Is GA4 supported by DSpace >>>>>> 6.x or 7.x? It would appear from the DSpace documentation and >>>>>> configuration that only Universal Analytics is supported. Any insight >>>>>> is >>>>>> welcomed! >>>>>> >>>>>> Thanks! >>>>>> >>>>>> James >>>>>> University of Alabama >>>>>> >>>>> -- >>>> All messages to this mailing list should adhere to the Code of Conduct: >>>> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx >>>> --- >>>> You received this message because you are subscribed to the Google >>>> Groups "DSpace Technical Support" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to dspace-tech...@googlegroups.com. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/dspace-tech/5db0a5f1-1db3-48d7-8170-49018ae6b291n%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/dspace-tech/5db0a5f1-1db3-48d7-8170-49018ae6b291n%40googlegroups.com?utm_medium=email&utm_source=footer> >>>> . >>>> >>> -- >> All messages to this mailing list should adhere to the Code of Conduct: >> https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx >> --- >> You received this message because you are subscribed to the Google Groups >> "DSpace Technical Support" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to dspace-tech...@googlegroups.com. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/dspace-tech/eba6ec75-5ece-4a12-bcec-92ce2d9a5ec9n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/dspace-tech/eba6ec75-5ece-4a12-bcec-92ce2d9a5ec9n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- All messages to this mailing list should adhere to the Code of Conduct: https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to dspace-tech+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/dspace-tech/8f46bf0c-fe93-41c2-86e2-cdbe88f883een%40googlegroups.com.