This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Reading Percentage Demo</title> | |
<style type="text/css"> | |
body { | |
max-width: 800px; | |
padding: 40px; | |
margin: 0 auto; | |
font-family: sans-serif; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const PIRSCH_CLIENT_ID = ScriptProperties.getProperty('client_id'); | |
const PIRSCH_CLIENT_SECRET = ScriptProperties.getProperty('client_secret'); | |
function onOpen() { | |
var ui = SpreadsheetApp.getUi(); | |
ui.createMenu("Pirsch Analytics") | |
.addItem('Get Visitors', 'pasteVisitorsToSheet') | |
.addToUi(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>YouTube Pirsch Demo</title> | |
<!-- Add the Pirsch extended script to support page views and events. --> | |
<script defer src="https://api.pirsch.io/pirsch-extended.js" | |
id="pirschextendedjs" | |
data-code="YOUR_PIRSCH_CODE"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Vimeo Pirsch Demo</title> | |
<!-- Add the Pirsch extended script to support page views and events. --> | |
<script defer src="https://api.pirsch.io/pirsch-extended.js" | |
id="pirschextendedjs" | |
data-code="YOUR_PIRSCH_CODE"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addLinks() { | |
const links = document.getElementsByTagName("a"); | |
for (const link of links) { | |
if (!link.hasAttribute("pirsch-ignore") && !link.classList.contains("pirsch-ignore")) { | |
addInternalLink(link); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
<a href="https://example.com">Link 1</a> | |
<a href="https://example.com/mountain">Link 2</a> | |
<a href="https://example.com/unreleated">Link 3</a> | |
<a href="https://example.com/sea">Link 4</a> | |
</p> | |
<script> | |
const keywords = [ | |
"sea", |
OlderNewer