3
0 Comments

Snippet to show Store ranking

There was a great thread on here recently about improving your Chrome store ranking. Based on it I updated my listing and resubmitted. And then wondered whether my changes had had any effect!

Since you can't improve what you can't measure I put together a little snippet of JS that you can run from the store search/listing page to tell you where you rank for a given search query. See below for code you can copy into the Chrome dev tools and save as a snippet. Replace your extension id for mine, enter your search string on the page and run the snippet to see where you rank!

let appId = "fialfmcgpibjgdoeodaondepigiiddio"
let query = $("#searchbox-input").value;
let appRow = document.querySelectorAll(`div[role="grid"] a[href*="${appId}"]`)[0];
if (!appRow)
    console.log(`App not present for "${query}"`);
else {
    if (appRow.getAttribute('index'))
        console.log(`App is at index ${appRow.getAttribute('index')} for "${query}"`);
    else
        console.log(`App is at index ${appRow.getAttribute('tabindex')} for "${query}"`);
}

Disclaimer - this was reverse engineered from the web store page and works for me today, there's no guarantee it will work in the future, or work for anyone else (altho I hope it does!)

Trending on Indie Hackers
After 10M+ Views, 13k+ Upvotes: The Reddit Strategy That Worked for Me! 42 comments Getting first 908 Paid Signups by Spending $353 ONLY. 23 comments 🔥Roast my one-man design agency website 21 comments What are your cold outreach conversion rates? Top 3 Metrics And Benchmarks To Track 19 comments I talked to 8 SaaS founders, these are the most common SaaS tools they use 18 comments Hero Section Copywriting Framework that Converts 3x 12 comments