Skip to content

Instantly share code, notes, and snippets.

@jeremyfelt
Created August 4, 2017 17:05
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jeremyfelt/87df0b5fd08145215844082560927c34 to your computer and use it in GitHub Desktop.
Save jeremyfelt/87df0b5fd08145215844082560927c34 to your computer and use it in GitHub Desktop.
WSU Google Tag Manager configuration
<script type='text/javascript'>
/* <![CDATA[ */
var wsu_analytics = {
"defaults":{
"cookieDomain":".wsu.edu"
},
"wsuglobal":{
"ga_code":"UA-55791317-1", // Leave this as is.
"is_editor":"false", // Optional. Set to true if visitor is an editor, false if not.
"track_view":"yes",
"events":[]
},"app":{
"ga_code":"UA-69906812-1", // See instructions to chose the application GA code.
"events":[]
},"site":{
"ga_code":"UA-17815664-1234", // Set the GA code for your site here.
"track_view":"yes",
"events":[]
}
};
/* ]]> */
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-K5CHVG');</script>
<!-- End Google Tag Manager -->

wsu_analytics.app.ga_code

Use the matching GA code below for your CMS application and apply it to the wsu_analytics.app.ga_code configuration.

  • Dreamweaver ( UA-69906812-10 )
  • Drupal ( UA-69906812-5 )
  • Joomla ( UA-69906812-6 )
  • Magento ( UA-69906812-3 )
  • Sitefinity ( UA-69906812-8 )
  • Umbraco ( UA-69906812-1 )
  • UP CMS ( UA-69906812-2 )
  • WordPress ( UA-69906812-7 )
  • Static ( UA-69906812-11 )
  • Home Grown ( UA-69906812-4 )
  • Other ( UA-69906812-9 )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment