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
| SELECT | |
| url,is_anonymized_query, | |
| SUM(clicks) as clicks, | |
| SUM(impressions) as impressions, | |
| SAFE_DIVIDE(SUM(sum_position), SUM(impressions)) as avg_position | |
| FROM `project`.`searchconsole`.`searchdata_url_impression` --update project to your GSC project ID | |
| WHERE data_date BETWEEN '2024-09-03' AND '2025-09-09' and is_anonymized_query=true -- pick a date range you want to check | |
| GROUP BY url, is_anonymized_query |
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
| WITH A AS ( | |
| SELECT | |
| url, | |
| SUM(clicks) as clicks, | |
| SUM(impressions) as impressions, | |
| SAFE_DIVIDE(SUM(sum_position), SUM(impressions)) as avg_position | |
| FROM `project`.`searchconsole`.`searchdata_url_impression` | |
| WHERE data_date BETWEEN '2025-09-03' AND '2025-09-09' -- Week 1 | |
| AND query IS NULL | |
| GROUP BY url |
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
| WITH A AS ( | |
| SELECT | |
| query, | |
| SUM(clicks) as clicks, | |
| SUM(impressions) as impressions | |
| FROM `project`.`searchconsole`.`searchdata_site_impression` | |
| WHERE data_date BETWEEN '2025-09-03' AND '2025-09-09' -- Week 1 | |
| GROUP BY query | |
| ), | |
| B AS ( |
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
| WITH A AS ( | |
| SELECT | |
| query, | |
| SUM(clicks) as clicks, | |
| SUM(impressions) as impressions | |
| FROM `project`.`searchconsole`.`searchdata_url_impression` | |
| WHERE data_date BETWEEN '2025-09-03' AND '2025-09-09' -- Week 1 | |
| GROUP BY query | |
| ), | |
| B AS ( |
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 positionImagesFullCover() { | |
| // Get the active presentation | |
| const presentation = SlidesApp.getActivePresentation(); | |
| // Get all slides in the presentation | |
| const slides = presentation.getSlides(); | |
| // Get the page dimensions (standard slide size) | |
| const pageWidth = presentation.getPageWidth(); | |
| const pageHeight = presentation.getPageHeight(); |
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
| // Enhanced Screaming Frog Recipe: Semantic Chunking + Open Source Embeddings | |
| // | |
| // This script breaks webpage content into semantic passages (paragraphs, headings, | |
| // list items, etc.) and embeds each chunk using sentence-transformers/all-MiniLM-L6-v2, | |
| // a high-performing open-source model that ranks well on MTEB benchmarks. | |
| // | |
| // SETUP REQUIRED: | |
| // 1. Get a free Hugging Face token from: https://huggingface.co/settings/tokens | |
| // 2. Replace 'your_hf_token_here' below with your actual token | |
| // 3. The token will be stored in your SEO Spider configuration - be mindful when sharing |
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 {Client} = require('@googlemaps/google-maps-services-js'); | |
| const geolib = require('geolib'); | |
| const client = new Client({}); | |
| async function isWater(latitude, longitude, apiKey) { | |
| try { | |
| const response = await client.reverseGeocode({ | |
| params: { | |
| latlng: [latitude, longitude], | |
| key: apiKey, |
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> | |
| // Replace 'https://trusted-origin.com' with the | |
| // actual origin you expect to receive messages from. | |
| // no trailing slash is needed | |
| var trustedOrigin = ['https://trusted-origin.com','https://storage.googleapis.com']; | |
| window.addEventListener('message', function(event) { | |
| console.log(event) | |
| if (trustedOrigin.indexOf(event.origin) > -1) { | |
| var messageType = event.data && event.data.type; |
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
| javascript: (function (){let arr = document.querySelectorAll("tbody .uVccjd.n2Hdyf.r2A6yd.i9xfbb.N2RpBe[aria-checked='true']");console.log(arr);let output = [];for (let i = 0; i < arr.length; i++){ let item = arr[i]; let href2 = item.closest('tr[class*=w0Oumf]').querySelector('a.DuDIZe').href ; console.log(i, " - ", href2); let locationIn = href2.split('/'); let location = locationIn[4]; output.push(location); }let output1 = output.join("\n"); navigator.clipboard.writeText(output1);})(); |