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
[x ] New feature (non-breaking change which adds functionality)
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:
Toolchain:
SDK:
Checklist:
[x ] My code follows the style guidelines of this project
[x ] I have performed a self-review of my code
[x ] I have commented my code, particularly in hard-to-understand areas
[x ] I have made corresponding changes to the documentation
[x ] My changes generate no new warnings
[x ] I have added tests that prove my fix is effective or that my feature works
[x ] New and existing unit tests pass locally with my changes
[x ] Any dependent changes have been merged and published in downstream modules
coverage: 45.864%. remained the same when pulling d58a6d1a588b2006a33cc7e3661316dbb412b1aa on google_scripts into fb2cf09dd9d08179725baeaf6016c12961214c25 on main.
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: