Advice and answers from the Seidat Team

Emma Ojapuska
Written by Emma Ojapuska

Setting up Google Analytics 4 with Google Tag Manager


With Google Analytics, you can get more data out of your presentations. After connecting, you will see what slides your viewers have visited and for how long. You can then determine how your content is performing by analyzing viewers' behavior.

Overall process:

  1. Create a Tag Manager container
  2. Add Tag Manager code to Seidat
  3. Create new tag
  4. Create new Google Analytics 4 property (or new data stream if you are an advanced user) for Seidat
  5. Add the GA4 measurement ID to Tag Manager.
  6. Create new data layer variables in Tag Manager and add them to the tag you just created

Create a Tag Manager container.

If you don't have a Google Tag Manager account, create one here. Create a new container in Google Tag Manager. If you are an advanced user (advanced: you can manage triggers in a multisite environment), you can also use an existing container.

Add Tag Manager code to Seidat.

Go to Seidat's team settings and copy and paste your Google Tag Manager container ID there.

Create new tag

Go back to GTM and create a new tag, name it (for example, GA4 Seidat), and select Google Analytics: GA4 Configuration as the tag type.

Then, choose the trigger to be "All pages"

Create a new Google Analytics 4 property / new data stream for Seidat

  1. Switch from Google Tag Manager to Google Analytics
  2. If you don't have a Google Analytics 4 account, go here to create a GA4 account. Once you have a GA4 account go to step 4 to create a new property or to step 3 to add a new data stream to an existing property (for advanced GA4 users).
  3. If you are an advanced user and know what you are doing, you can also use an existing property and add a new data stream. The benefits of using the same property as on your website are that you can follow the visitor's path across the website and Seidat presentations. Add a new data stream to an existing GA4 property; the website URL must be seidat.net (image below). Skip part 4.

4. Create a new property in Google Analytics (image below). Name the property and select the correct settings according to our currency and time zone etc.

Once the property is created, select "Web" to be the platform for collecting data.

Then, set the web stream to be: seidat.net (image below). MAKE SURE YOU WRITE SEIDAT.NET, NOT SEIDAT.COM.

Click Create stream

Add the GA4 measurement ID to Tag Manager.

Once you have created the property or added a new data stream to an existing property, find the measurement ID from Google Analytics and add it to Tag Manager. Measurement ID can be found in Google Analytics by searching "measurement id" from the search bar or by going to settings > admin > property > data stream. (images below)

Add the measurement ID to GTM and set the Fields to set: Field name: cookie_flags Value: samesite=none;secure (image below). Click save.

Create new data layer variables in Tag Manager and add them to the tag you just created

Go to "Variables" in the Tag Manager, go to User-Defined Variables, and add a new variable: Data layer variable (Image below).

Create the Data layers listed below the image. Data layer variable name: (example) presentationId.

  1. slideTitle - Slide title.
  2. presentationTitle - Presentation title.
  3. slideId - Slide ID.
  4. presentationId - Presentation ID.
  5. userId - User ID. Only set if the visitor is logged in and is a team member that owns the presentation. Set to null otherwise.

After creating them all it should look like this (DLV in the name is short for Data Layer Variable):

Go back to tags, and edit the tag you have created.

When editing it, add the variables you just created to Fields to set by clicking Add row.


Remember to click "Submit"!


You should be all set right now. Once people are watching your Seidat presentations, you see it from Google Analytics.


Notes

  • Analytics data is only collected on presentation URLs (including Shared and Live presentations). Other pages in the app are left out.
  • Any use of ad blockers will most likely prevent analytics data collection.
  • Only slide views longer than 1s are recorded.
  • No personally identifiable information about the viewers is collected (e.g., emails and personal names).
Categories: