wri / wri_sites

WRI profile
2 stars 2 forks source link

Add Osano script to Head #235

Closed StudioZut closed 8 months ago

StudioZut commented 11 months ago

Add the Osano script to the section.

Use a Snippet to set the script ID. Set machine name as "osano_id" (example ID for flagship = 2f1a8361-e0bc-41c3-b332-023fe627c0bb)

Add immediately AFTER Google Consent Mode script "ads_data_redaction" (~ line 49)

Note: we have been calling the script via GTM, but this is causing some issues and is not the preferred method (per Osano's docs).

StudioZut commented 11 months ago

PR https://github.com/wri/wri_sites/pull/236

StudioZut commented 11 months ago

Added option to remove script so it doesn't load in Head, since some sites might continue to load via GTM. This also makes it easier to troubleshoot or change vendors. This code is in place and tested on "osanofix3" multidev for wri-brasil https://osanofix3-wri-brasil.pantheonsite.io/

mariacha commented 11 months ago

This is up on develop for when we do our next deploy (so it shouldn't get lost) https://develop-wriflagship.pantheonsite.io/

wthomaswri commented 10 months ago

looks good @mariacha

mariacha commented 10 months ago

This is ready to test on Brasil's develop site: https://develop-wri-brasil.pantheonsite.io

When you view source for the page, you should see https://cmp.osano.com/AzyfddTRtqi1560Dk/68d76b4b-41d5-408a-8727-00456ae2d7c6/osano.js?variant=five just like on live

mariacha commented 9 months ago

This is ready for review on the remaining IOs: China: https://develop-wri-china.pantheonsite.io/en/research/release-957 Indonesia: https://develop-wri-indonesia.pantheonsite.io/id/publikasi/957-melepaskan Espanol: https://develop-wri-espanol.pantheonsite.io/publicaciones/release-957-958

wthomaswri commented 9 months ago

@mariacha @katieescoto i'm not seeing the script on these sites. can you verify?

mariacha commented 9 months ago

Yep, as long as they match what's on their live sites (which also have no scripts) we're good!