콘텐츠로 이동

Quick start

이 콘텐츠는 아직 번역되지 않았습니다.

Five steps. The only thing you write is your own reviews.

Open the template spreadsheet and use File → Make a copy to put it in your own Drive.

The copy is yours. Delete the example rows and start typing your own, or keep them while you get the page working and clear them later.

The page reads a published CSV link, not the spreadsheet itself. In your copy:

  1. File → Share → Publish to web
  2. In the Link tab, set the left dropdown to your sheet (List) and the right one to Comma-separated values (.csv)
  3. Click Publish and copy the URL it gives you

That URL ends in output=csv. Keep it; step 4 needs it.

Grab the latest release and unzip it. You need two files out of it:

index.html
ranking-config.js

The page fetches the rest — the script and the stylesheet — as it loads, and picks up bug fixes on its own. If you would rather host every file yourself, Deploying covers that; the rest of this page is the same either way.

Open ranking-config.js in any text editor. Near the top you will find two url lines. Replace both with the URL you copied in step 2.

source: {
kind: 'csv',
url: 'https://docs.google.com/spreadsheets/d/e/.../pub?gid=0&single=true&output=csv',
},

There are two because the page supports separate earphone and headphone lists. Using the same URL for both is fine if you keep everything in one sheet.

While you are in there, set the header title and the footer note, a little further down:

chrome: {
title: 'My Rankings',
footer: {
note: 'Rankings reflect my own listening.',
},
},

index.html carries no wording of its own, so this is the only place it lives. See chrome for the header links and the rest of the options.

Put both files in a ranking/ folder next to your existing measurement site:

your-squig-site/
├── index.html ← your CrinGraph or modernGraphTool page
├── data/phone_book.json
└── ranking/ ← the two files go here

Open your-site.com/ranking/ and the page should list your devices.

Almost always the CSV link. Open the URL from step 2 directly in a browser tab: it should download or display raw comma-separated text. If it shows a spreadsheet interface instead, the Publish to web step picked the sharing link rather than the CSV one.