wri / wri_sites

WRI profile
3 stars 2 forks source link

Allow using sst.wri.org instead of https://www.googletagmanager.com (gtm) #323

Open mariacha opened 2 months ago

mariacha commented 2 months ago

We've got this https://www.googletagmanager.com two places in our build: https://github.com/wri/wri_sites/blob/main/modules/wri_common/js/wri_gtm.js

https://github.com/wri/wri_sites/blob/main/themes/custom/ts_wrin/templates/layout/html.html.twig#L67

These need to be swappable with the url sst.wri.org in both places. We can use Content Snippets to accomplish this:

Dev tasks

this ticket is done when

How to test:

mariacha commented 4 weeks ago

This is ready for testing. The url for analytics can be updated at https://develop-wriflagship.pantheonsite.io/admin/content/content_snippets to https://sst.wri.org instead of https://www.googletagmanager.com and then we will want to verify that the analytics data is coming through from develop. @cpmadera passing to you to test out!