CINXE.COM
Omeka Classic and Google Analytics - Omeka Classic - Omeka Forum
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Omeka Classic and Google Analytics - Omeka Classic - Omeka Forum</title> <meta name="description" content="How do I add the Google Analytics code to an Omeka Classic site? This seems to be something folks have given up on, no mentions in the forum for a long while and the old plugin no longer works. Has anyone ever tried doi&hellip;"> <meta name="generator" content="Discourse 3.3.1 - https://github.com/discourse/discourse version 25514419e0a9e54991d6a81f9197b6a129b390e9"> <link rel="icon" type="image/png" href="https://forum.omeka.org/uploads/default/optimized/2X/d/db6432aab17e05d848cf3c4b402b9a65d7c73134_2_32x32.png"> <link rel="apple-touch-icon" type="image/png" href="https://forum.omeka.org/uploads/default/optimized/2X/2/28a726fe237f36bb1937e6a03c44d37c339e3aef_2_180x180.jpeg"> <meta name="theme-color" media="all" content="#404E61"> <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=yes, viewport-fit=cover"> <link rel="canonical" href="https://forum.omeka.org/t/omeka-classic-and-google-analytics/24225" /> <link rel="search" type="application/opensearchdescription+xml" href="https://forum.omeka.org/opensearch.xml" title="Omeka Forum Search"> <link href="/stylesheets/color_definitions_super-official-omeka-branding-x_1_1_7baa737f74c14599798c9011f2a2980d3b8fc610.css?__ws=forum.omeka.org" media="all" rel="stylesheet" class="light-scheme"/> <link href="/stylesheets/desktop_e5fb5730e391fb8b20fb96a8213def89a8415fc8.css?__ws=forum.omeka.org" media="all" rel="stylesheet" data-target="desktop" /> <link href="/stylesheets/checklist_e5fb5730e391fb8b20fb96a8213def89a8415fc8.css?__ws=forum.omeka.org" media="all" rel="stylesheet" data-target="checklist" /> <link href="/stylesheets/discourse-details_e5fb5730e391fb8b20fb96a8213def89a8415fc8.css?__ws=forum.omeka.org" media="all" rel="stylesheet" data-target="discourse-details" /> <link href="/stylesheets/discourse-lazy-videos_e5fb5730e391fb8b20fb96a8213def89a8415fc8.css?__ws=forum.omeka.org" media="all" rel="stylesheet" data-target="discourse-lazy-videos" /> <link href="/stylesheets/discourse-local-dates_e5fb5730e391fb8b20fb96a8213def89a8415fc8.css?__ws=forum.omeka.org" media="all" rel="stylesheet" data-target="discourse-local-dates" /> <link href="/stylesheets/discourse-narrative-bot_e5fb5730e391fb8b20fb96a8213def89a8415fc8.css?__ws=forum.omeka.org" media="all" rel="stylesheet" data-target="discourse-narrative-bot" /> <link href="/stylesheets/discourse-presence_e5fb5730e391fb8b20fb96a8213def89a8415fc8.css?__ws=forum.omeka.org" media="all" rel="stylesheet" data-target="discourse-presence" /> <link href="/stylesheets/docker_manager_e5fb5730e391fb8b20fb96a8213def89a8415fc8.css?__ws=forum.omeka.org" media="all" rel="stylesheet" data-target="docker_manager" /> <link href="/stylesheets/footnote_e5fb5730e391fb8b20fb96a8213def89a8415fc8.css?__ws=forum.omeka.org" media="all" rel="stylesheet" data-target="footnote" /> <link href="/stylesheets/poll_e5fb5730e391fb8b20fb96a8213def89a8415fc8.css?__ws=forum.omeka.org" media="all" rel="stylesheet" data-target="poll" /> <link href="/stylesheets/spoiler-alert_e5fb5730e391fb8b20fb96a8213def89a8415fc8.css?__ws=forum.omeka.org" media="all" rel="stylesheet" data-target="spoiler-alert" /> <link href="/stylesheets/poll_desktop_e5fb5730e391fb8b20fb96a8213def89a8415fc8.css?__ws=forum.omeka.org" media="all" rel="stylesheet" data-target="poll_desktop" /> <link href="/stylesheets/desktop_theme_2_7f4a472290ee0d6795d4af9cbcd3f08d7ea86852.css?__ws=forum.omeka.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="2" data-theme-name="discourse-google-font-component"/> <link href="/stylesheets/desktop_theme_1_93ae6397a8e0528210a5e15cfa0a64737a1178f6.css?__ws=forum.omeka.org" media="all" rel="stylesheet" data-target="desktop_theme" data-theme-id="1" data-theme-name="super customizations turbo"/> <script defer="" src="/theme-javascripts/d5bac3c93da033d2e34f829991142ab7a65f3a53.js?__ws=forum.omeka.org" data-theme-id="2" nonce="rBgcvrSQku9g6DtMGHy4sUDfG"></script> <link rel="alternate nofollow" type="application/rss+xml" title="RSS feed of 'Omeka Classic and Google Analytics'" href="https://forum.omeka.org/t/omeka-classic-and-google-analytics/24225.rss" /> <meta property="og:site_name" content="Omeka Forum" /> <meta property="og:type" content="website" /> <meta name="twitter:card" content="summary" /> <meta name="twitter:image" content="https://forum.omeka.org/uploads/default/original/2X/2/28a726fe237f36bb1937e6a03c44d37c339e3aef.jpeg" /> <meta property="og:image" content="https://forum.omeka.org/uploads/default/original/2X/2/28a726fe237f36bb1937e6a03c44d37c339e3aef.jpeg" /> <meta property="og:url" content="https://forum.omeka.org/t/omeka-classic-and-google-analytics/24225" /> <meta name="twitter:url" content="https://forum.omeka.org/t/omeka-classic-and-google-analytics/24225" /> <meta property="og:title" content="Omeka Classic and Google Analytics" /> <meta name="twitter:title" content="Omeka Classic and Google Analytics" /> <meta property="og:description" content="How do I add the Google Analytics code to an Omeka Classic site? This seems to be something folks have given up on, no mentions in the forum for a long while and the old plugin no longer works. Has anyone ever tried doing it in a .js file or adding it to the theme .js ? No idea if that would work but I have heard that done on other platforms. I can use the hosting services analytics to a point but would prefer Google to keep this resource aligned with the data we are getting for other platforms..." /> <meta name="twitter:description" content="How do I add the Google Analytics code to an Omeka Classic site? This seems to be something folks have given up on, no mentions in the forum for a long while and the old plugin no longer works. Has anyone ever tried doing it in a .js file or adding it to the theme .js ? No idea if that would work but I have heard that done on other platforms. I can use the hosting services analytics to a point but would prefer Google to keep this resource aligned with the data we are getting for other platforms..." /> <meta property="og:article:section" content="Omeka Classic" /> <meta property="og:article:section:color" content="BF1E2E" /> <meta property="article:published_time" content="2024-10-30T18:35:55+00:00" /> <meta property="og:ignore_canonical" content="true" /> </head> <body class="crawler browser-update"> <header> <a href="/"> Omeka Forum </a> </header> <div id="main-outlet" class="wrap" role="main"> <div id="topic-title"> <h1> <a href="/t/omeka-classic-and-google-analytics/24225">Omeka Classic and Google Analytics</a> </h1> <div class="topic-category" itemscope itemtype="http://schema.org/BreadcrumbList"> <span itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem"> <a href="/c/omeka-classic/7" class="badge-wrapper bullet" itemprop="item"> <span class='badge-category-bg' style='background-color: #BF1E2E'></span> <span class='badge-category clear-badge'> <span class='category-name' itemprop='name'>Omeka Classic</span> </span> </a> <meta itemprop="position" content="1" /> </span> </div> </div> <div itemscope itemtype='http://schema.org/DiscussionForumPosting'> <meta itemprop='headline' content='Omeka Classic and Google Analytics'> <link itemprop='url' href='https://forum.omeka.org/t/omeka-classic-and-google-analytics/24225'> <meta itemprop='datePublished' content='2024-10-30T18:35:55Z'> <meta itemprop='articleSection' content='Omeka Classic'> <meta itemprop='keywords' content=''> <div itemprop='publisher' itemscope itemtype="http://schema.org/Organization"> <meta itemprop='name' content='Omeka Forum'> <div itemprop='logo' itemscope itemtype="http://schema.org/ImageObject"> <meta itemprop='url' content='https://forum.omeka.org/uploads/default/original/2X/6/61475bb0c52eeb38e3935e4b140292671c47fdbc.png'> </div> </div> <div id='post_1' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.omeka.org/u/nicolescalessa'><span itemprop='name'>nicolescalessa</span></a> </span> <link itemprop="mainEntityOfPage" href="https://forum.omeka.org/t/omeka-classic-and-google-analytics/24225"> <span class="crawler-post-infos"> <time datetime='2024-10-30T18:35:55Z' class='post-time'> October 30, 2024, 6:35pm </time> <meta itemprop='dateModified' content='2024-10-30T18:35:55Z'> <span itemprop='position'>1</span> </span> </div> <div class='post' itemprop='text'> <p>How do I add the Google Analytics code to an Omeka Classic site? This seems to be something folks have given up on, no mentions in the forum for a long while and the old plugin no longer works.</p> <p>Has anyone ever tried doing it in a .js file or adding it to the theme .js ? No idea if that would work but I have heard that done on other platforms. I can use the hosting services analytics to a point but would prefer Google to keep this resource aligned with the data we are getting for other platforms.</p> <p>Thanks,<br> Nicole</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_2' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.omeka.org/u/fackrellj'><span itemprop='name'>fackrellj</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-10-30T19:05:50Z' class='post-time'> October 30, 2024, 7:05pm </time> <meta itemprop='dateModified' content='2024-10-30T19:05:50Z'> <span itemprop='position'>2</span> </span> </div> <div class='post' itemprop='text'> <p>Hi <a class="mention" href="/u/nicolescalessa">@nicolescalessa</a> ,</p> <p>I would just add the code snippet to /my-theme/common/header.php.</p> <p>The only thing I think you鈥檇 need to watch for is if you鈥檙e using a standard theme, you don鈥檛 want to overwrite it if you do an upgrade in the future.</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> <div id='post_3' itemprop='comment' itemscope itemtype='http://schema.org/Comment' class='topic-body crawler-post'> <div class='crawler-post-meta'> <span class="creator" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a itemprop="url" href='https://forum.omeka.org/u/nicolescalessa'><span itemprop='name'>nicolescalessa</span></a> </span> <span class="crawler-post-infos"> <time itemprop='datePublished' datetime='2024-10-30T19:29:33Z' class='post-time'> October 30, 2024, 7:29pm </time> <meta itemprop='dateModified' content='2024-10-30T19:29:33Z'> <span itemprop='position'>3</span> </span> </div> <div class='post' itemprop='text'> <p>Thanks Jon. That worked. Appreciate the help!</p> </div> <div itemprop="interactionStatistic" itemscope itemtype="http://schema.org/InteractionCounter"> <meta itemprop="interactionType" content="http://schema.org/LikeAction"/> <meta itemprop="userInteractionCount" content="0" /> <span class='post-likes'></span> </div> </div> </div> </div> <footer class="container wrap"> <nav class='crawler-nav'> <ul> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/' itemprop="url">Home </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/categories' itemprop="url">Categories </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/guidelines' itemprop="url">Guidelines </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/tos' itemprop="url">Terms of Service </a> </span> </li> <li itemscope itemtype='http://schema.org/SiteNavigationElement'> <span itemprop='name'> <a href='/privacy' itemprop="url">Privacy Policy </a> </span> </li> </ul> </nav> <p class='powered-by-link'>Powered by <a href="https://www.discourse.org">Discourse</a>, best viewed with JavaScript enabled</p> </footer> <div class="buorg"><div>Unfortunately, <a href="https://www.discourse.org/faq/#browser">your browser is unsupported</a>. Please <a href="https://browsehappy.com">switch to a supported browser</a> to view rich content, log in and reply.</div></div> </body> </html>