GA4 integration

You can now set up GA4 reporting with Videoly. 

You’ll need to make sure you’re using the gtag.js in order to set up GA4 reporting.

Set up trackers to send events only to your GA4, or to both your Universal GA and GA4. 

How to get started

1. Gtag.js 

  • Check if you have installed gtag.js according to  Google’s default configuration ( which contains a Google Analytics property ID, *see snippet below).
  • If your gtag.js setup differs from Google’s default configuration, you can easily amend this by adding a snippet to enable events to your gtag.js with the help of a tag manager, such as Google Tag Manager (GTM).

💡Note: to set up events for both Universal GA and GA4, make sure your gtag.js contains property IDs for both instances. 

💡Note: “G-XXXXXXXXXX” is your GA4 ID.

To send Videoly events ONLY to GA4:

<script>
 window.dataLayer = window.dataLayer || [];
 function gtag(){dataLayer.push(arguments);}
 gtag('js', new Date());
 gtag('config', 'G-XXXXXXXXXX');
</script>

To send Videoly events to BOTH Universal GA and GA4:

<script>
 window.dataLayer = window.dataLayer || [];
 function gtag(){dataLayer.push(arguments);}
 gtag('js', new Date());
 gtag('config', 'G-XXXXXXXXXX');
gtag('config', 'UA-XXXXXXX-X');
</script>

2. MyVideoly 

Once you’ve installed gtag.js, just:

  • Log into MyVideoly ▻ Shop Settings ▻ Integrations
  • Choose GA Version “GA4” 
  • Click ‘Save’ 

Questions? Please reach out to our team via support@videoly.co

Want to know more about the GA events we send you? Read more HERE.

Was this article helpful?