TAMULib / SAGE

Search Aggregation Engine
MIT License
6 stars 3 forks source link

Add GA4 #555

Closed qtamu closed 1 year ago

qtamu commented 1 year ago

Description

Added Google Tag Manager scripts using an injection script in docker-entrypoint.sh to replace a placeholder in the index.html file. It will only run the script when nodenv is set to production.

Fixes # (issue) KACE ticket to add the Google Analytics tags .

Type of change

How Has This Been Tested?

Created a test google tag manager account to use the container id. I used the container id in my injection script then built the image when the nodeenv is set to prod and dev to see if the script is ran properly and my conditional statement works.

Test Configuration:

Checklist:

coveralls commented 1 year ago

Coverage Status

coverage: 45.864%. remained the same when pulling d58a6d1a588b2006a33cc7e3661316dbb412b1aa on google_scripts into fb2cf09dd9d08179725baeaf6016c12961214c25 on main.