Sending Data to Google Analytics

  • Updated

Send training data from your Skilljar training site directly to Google Analytics via the Code Snippets section on the Themeing page of your Skilljar dashboard.

For more information about adding analytics and tracking codes, please see Adding Web Analytics, Conversion Tracking, Completion Tracking or Custom Javascript.

Google Analytics Tracking ID

GA4 [G-XXXX-Y]

To send training data to Google Analytics, please add your G-XXXX-Y formatted code to the snippet below by replacing TAG_IDon lines 1 and 6. After formatting the general tracking snippet, then add it to your theme on your Skilljar dashboard by selecting Theming, expanding the Code Snippets header, and then pasting it into the Analytics Tracking Code Snippet box.

We currently don't support the G-XXXX-Y formatted codes in our Google Analytics Tracking ID section. Instead, please add your G-XXXX-Y formatted code to the snippet below by replacing TAG_ID on lines 1 and 6. After formatting the general tracking snippet, please add it to your theme's Analytics Tracking Code Snippet section.
<!-- Global Head Snippet -->
<script async src="https://www.googletagmanager.com/gtag/js?id=TAG_ID"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'TAG_ID');
</script>
For more information on setting up Google Analytics 4, please see Google’s getting started guide.

Universal Analytics [UA-XXXXX-Y]

Universal Analytics (UA) by Google (also known as Google Analytics 3) has been deprecated by Google and should not be used with Skilljar. Using UA may result in unexpected behavior. If you are currently using UA, you will need to update to Google Analytics 4 to continue sending training data from Skilljar to Google Analytics.

For more information on the difference between GA3 and GA4, please see Google's support article.

Was this article helpful?

0 out of 0 found this helpful