JSFiddle - React, Tailwind, and code Playground
by sjmcpherson
HTML
<meta property="analytics-track" content="Hey There!">
JavaScript
//document.getElementsByTagName('meta')[0].getAttribute("content")
var str = document.querySelector('[property=analytics-track]').outerHTML.match(/content="(.*)"/)[1];
console.log(str);