Difference between revisions of "MediaWiki:Common.js"

From Charak Samhita
Jump to navigation Jump to search
Line 4: Line 4:
 
onClick="javascript: history.go(-1)">
 
onClick="javascript: history.go(-1)">
 
</form>
 
</form>
 +
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YEV43L6CBH"></script>
 +
<script>
 +
  window.dataLayer = window.dataLayer || [];
 +
  function gtag(){dataLayer.push(arguments);}
 +
  gtag('js', new Date());
 +
 +
  gtag('config', 'G-YEV43L6CBH');
 +
</script>

Revision as of 21:34, 10 May 2023

/* Any JavaScript here will be loaded for all users on every page load. */
<form>
<input type="button" value="Back to Previous Page" 
onClick="javascript: history.go(-1)">
</form>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-YEV43L6CBH"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-YEV43L6CBH');
</script>