TAMULib / dspace-angular

DSpace 7.x (and above) User Interface built on Angular.io
https://wiki.lyrasis.org/display/DSDOC7x/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

[DSpace 7 Upgrade] Add Google Tag Manager #31

Closed wwelling closed 7 months ago

wwelling commented 10 months ago

Spreadsheet w/ the google tags available. (Bonnie has it) (https://drive.google.com/drive/folders/1PSXJcEQEgOZcVL0_ZN7EsuTiyzMzVHXh)

Inserted using entrypoint and set using an env variable in the production deployment.

Dbreck-TAMU commented 9 months ago

.

qtamu commented 9 months ago

There is a Google analytics configuration, for Google tags, built in. We may only need to create an environment variable for the actual tag key and uncomment the line in the dspace.cfg file. https://github.com/TAMULib/DSpace/blob/9381bcc575ccb5528c802b9033f1bfde160e818a/dspace/config/dspace.cfg#L1504

wwelling commented 8 months ago

https://wiki.lyrasis.org/display/DSDOC7x/Search+Engine+Optimization

wwelling commented 8 months ago

Confirm with @bonniegardner and @jcreel whether we want to utilize DSpace 7 server-side Google analytics and add Google tag manager scripting to the index.html in dspace-angular.

Options:

wwelling commented 8 months ago

Note that if choosing to implement a custom dspace-angular component to incorporate google analytics tag manager we will not be able to provide analytics for browsing with JavaScript disabled and would have additional complexity to enable Google Analytics for bitstream download links.

https://support.google.com/analytics/answer/6165470?hl=en

I recommend we just configure following https://wiki.lyrasis.org/display/DSDOC7x/DSpace+Google+Analytics+Statistics.

qtamu commented 8 months ago

Bonnie was able to provide us with a test script and tag here

wwelling commented 7 months ago

Do we want to track bitstream downloads using Solr and/or GA4?