As of July 1st, 2023, Universal Analytics (UA) has been deprecated by Google and replaced by Google Analytics 4 (GA4). For more information on the potential impact of this change, please see Google's documentation.
If using Google Analytics to track web traffic across your institution's web pages, your Google tag can be added to your ILLiad Borrowing and Lending web pages to facilitate data collection by following the steps below:
-
Locate your Google tag within the Google Analytics interface (for more information on accessing your Google tag, see the "Add the Google tag directly to your web pages" section within the Google Analytics documentation)
Your Google tag will begin with:
and end with:<!-- Google tag (gtag.js) -->
</script>
- To implement Google Analytics on your ILLiad Borrowing web pages, open the include_head.html file in your ILLiad web directory (default location: C:\inetpub\wwwroot\illiad\ or in GitHub)
- Copy and paste your entire Google tag on a new, blank line at the end of the file
- Save the file. This will enable Google Analytics tracking for all web pages in your web directory except for the Logon web page (Logon.html)
- If you would also like to track Google Analytics statistics on the Logon web page, locate and open the Logon.html file in your ILLiad web directory
- Create a new, blank line directly above the line of code for the </head> closing tag on the Logon.html file (default line 23)
- Copy and paste your entire Google tag on this new line, e.g.:
<head>
<title>ILLiad - Logon</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<link rel="apple-touch-icon" href="iphone-icon.png">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="css/illiad.css">
<link rel="stylesheet" href="css/custom.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.13/css/all.css" integrity="sha384-DNOHZ68U8hZfKXOrtjWvjxusGo9WQnrNx2sqG0tfsghAvtVlRW3tvkXWZh58N9jp" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" href="css/cookieconsent.min.css" />
<script src="https://code.jquery.com/jquery-3.5.1.min.js" integrity="sha256-9/aliU8dGd2tb6OSsuzixeV4y/faTqgFtohetphbbj0=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="js/webAlerts.js"></script>
<script src="js/cookieconsent.min.js" data-cfasync="false"></script>
<script src="js/atlasCookieConsent.js"></script><!-- Google tag (gtag.js) -->
[your Google tag code here]
</script>
</head> - Save the file
- Google Analytics tracking is now enabled for your ILLiad Borrowing web pages. Note that it may take up to 30 minutes for data collection to begin after your changes are saved
- To implement Google Analytics on your ILLiad Lending web pages, navigate to the Lending folder in the ILLiad web directory on the ILLiad server (default location: C:\inetpub\wwwroot\illiad\Lending or in GitHub)
- Repeat steps 2-8 for the include_head.html and LendingLogon.html files in your Lending web directory
- Google Analytics tracking is now enabled for your ILLiad Lending web pages. Note that it may take up to 30 minutes for data collection to begin after your changes are saved
Note: If you are using multiple web directories, for example, one for ILLiad authentication and one for remote authentication, then this change should be made to the include_head.html and Logon.html/LendingLogon.html files in each directory.