This file contains hidden or 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
| CREATE TABLE pirsch.event | |
| ( | |
| `client_id` UInt64, | |
| `time` DateTime64(3, 'UTC'), | |
| `duration_seconds` UInt32 DEFAULT 0, | |
| `path` String, | |
| `language` LowCardinality(String), | |
| `country_code` LowCardinality(FixedString(2)), | |
| `referrer` String, | |
| `referrer_name` String, |
This file contains hidden or 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
| // Incomplete ChartJS demo code. | |
| import {Chart} from "chart.js"; | |
| import { | |
| BarController, | |
| BarElement, | |
| CategoryScale, | |
| Chart, | |
| Filler, | |
| LinearScale, |
This file contains hidden or 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
| <script> | |
| function findFormTitle(node) { | |
| const tag = node.tagName; | |
| if (tag === "H1" || tag === "H2" || tag === "H3" || tag === "H4") { | |
| return node.innerText; | |
| } | |
| for (const child of node.children) { |
This file contains hidden or 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", |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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; |
NewerOlder