Do I need to add the Google Tag Manager if I already have Google Analytics?
Anyone Explain Google Tag Manager to me Please in Simple
What is the proper way to tag pages in Google Analytics? - Stack Overflow
Add google analytics code in simple html page - Stack Overflow
Does Google Tag Manager replace Google Analytics?
What is Google Tag Manager?
Why should I start using Google Tag Manager?
Videos
you can leave the global site tag tracking code snippet on your site, just do not also configure tags for GA pageview tracking within GTM.
If it were me, I would remove the global site tag tracking code snippet and configure tags for GA tracking within the google tag manager container.
Bit of extra information:
Both Tag Manager and gtag.js perform similar functions:
Tag Manager is a tag management system that allows you to quickly and easily update tags on your website or mobile app from a web interface.
gtag.js is the JavaScript framework that is used to add Google tags directly to web pages.
https://support.google.com/tagmanager/answer/7582054?hl=en
You need to add your Google Tag Manager code in your website.
Then, you have two options:
Leave it, don't do anything else. Your Google Analytics code will remain as it is and FB Pixel will be added via Google Tag Manager.
Alternatively, you can remove the code for Google Analytics from your website and add a tag in Google Tag Manager https://support.google.com/tagmanager/answer/6107124?hl=en (Recommended option for efficiency)
Do not mistake Google Tag Manager with the Global site tag you used to add Google Analytics, they are different things: https://developers.google.com/gtagjs
I'm New to Google Tag Manager
What you are looking for is called 'content grouping'. If you haven't information in the URL you can define some rules when the page loads and pass the information to Analytics with the pageviews.
You can find more information here: https://support.google.com/analytics/answer/2853423?hl=en
Then you can get these information from Data Studio.
Because of your multi-value needs, nothing in GA is going to satisfy your requirements out of the box. You will have to do some post-processing, and I am not familiar enough with Data Studio to know where its limits are in that regard.
As the previous poster suggested, Content Grouping is the standard way to create custom aggregations of pages. You can have multiple content groupings, such as Faculty and Level, but a page can be in only one group per grouping (not the clearest terminology but it appears to be what Google uses).
A different option is Custom Dimensions. There are two options here. One is to create custom dimensions for Level and Faculty. Each page can still have only one value per dimension, but you could send a comma-delimited string when a department is in multiple faculties (for instance) and then pull it apart again in a spreadsheet.
The second option is to create a custom dimension for Department directly, and associate each department to the appropriate one or more faculties and levels in your reporting.
How you set the custom dimensions or content grouping will depend on your implementation of GA. If you are using the Google Analytics Drupal module, it says it supports setting custom dimensions as a feature. If you are using Google Tag Manager you can set the dimension value in your tags directly, though of course it will need to decide what value to set on based on either totally enumerated rules you write or something it can read out of the page. Here is some Tag Manager documentation: Content Grouping via GTM; Custom Dimensions via GTM.
If the department is present in the page in some consistently marked-up way you can grab it; if not the Metatag module or one of its schema.org extensions might be able to provide you a spot to set a value for GTM to retrieve.
When you create a Google Analytics account you will be prompted with a page with the tracking code. Just add that tracking code in the <head> of your html page.
You'll have to setup a google analytics account where you can get your custom tracking code like the on @Joshua Dance showed, insert that code in the <head>
of every single page of your webiste. It takes about 24 hours for the data to start showing in google analytics so keep that in mind.