Scully Helped us Reach a 99 Lighthouse Score for a B2C Platform

Who the contributors are

Project background

What is Scully and how to deploy‍

Now Lighthouse score reaches 100

Better Google indexation — how to spot the company in the top

Making the overall CSS footprint smaller with Tailwind

User growth and stronger involvement

Integration of Google eCommerce Marketing

Bridging Google Analytics’ tags and your Scully platform

import { registerPlugin, getMyConfig } from '@scullyio/scully';export const GoogleAnalytics = 'googleAnalytics';export const googleAnalyticsPlugin = async (html: string): Promise<string> => {
const googleAnalyticsConfig = getMyConfig(googleAnalyticsPlugin);
if (!googleAnalyticsConfig || !googleAnalyticsConfig['globalSiteTag']) {
throw new Error('googleAnalytics plugin missing Global Site Tag');
}
const siteTag: string = googleAnalyticsConfig['globalSiteTag']; // your gtmTagId
const googleAnalyticsScript = `
// your GA script code here
`;
return html.replace(/<\/head/i, `${googleAnalyticsScript}</head`);
};
const validator = async () => [];registerPlugin('postProcessByHtml', GoogleAnalytics, googleAnalyticsPlugin, validator);

Summary

Useful links

--

--

--

Useful articles from experienced Valor specialists in various spheres of digital development.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Angular versus Vue

Developers Guide to React Routers

Blog Post 303

Creating a Google Search Clone

Data Visualisation in React —  Part I: An introduction to Recharts

How to Build a Command Line Tool with NPM

Moving Animated Countdown Timer from Vanilla JavaScript to a Reusable Vue Component

HTTP vs WebSockets

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Valor Software

Valor Software

Useful articles from experienced Valor specialists in various spheres of digital development.

More from Medium

Web3 Rummy: WebComponent SPA Part 2/4

How We Made Vite Run in Browser

Adding external library in draw.io

Console