Stormkit Logo
Stormkit Logo
pricingdocsblogwhats new?GitHubTwitterDiscordDiscordlogin

Using Analytic Tools With Stormkit

Apr 09, 2022

Easily inject snippets into your application without deploying your application.

Snippets

With the help of our Snippets functionality you can inject any code into your application without deploying it. This is very powerful as you can turn on and off integrations instantly.

Plausible and Stormkit

For the purpose of this blog post, we will be using Plausible as an example but this functionality can be used with any third party tool. Plausible is an open source analytic platform, you can either host it yourself or use their cloud offering. Let's get started by adding our endpoint to Plausible:

Plausible

We're going to use https://paintersheer-foihe8.stormkit.dev/ as an example. After providing the endpoint to Plasuible, it will generate a script similar to the one below:

<script
  defer
  data-domain="paintersheer-foihe8.stormkit.dev"
  src="https://plausible.io/js/plausible.js"
></script>

Now head to your App on Stormkit, select the Environment which the snippet will be injected and click on Snippets from the environment menu on the right side of the page.

Snippets

Select add snippet and paste the code provided by Plausible.

Add snippet

Once you visit your web site you will notice in Plausible dashboard that visitor data is displayed.

Conclusion

In this example, we added analytic capabilities to our website without altering the source code. The snippets functionality allows us to enable or disable injected code without any deployment.

Hope you found this post useful!

Stormkit Logo

© 2023 Stormkit, Inc.

company
partnerspricingprivacy policyterms
\n```\n\nNow head to your **App** on Stormkit, select the **Environment** which the snippet will be injected and click on **Snippets** from the environment menu on the right side of the page.\n\n
\n \"Snippets\"\n
\n\nSelect add snippet and paste the code provided by Plausible.\n\n
\n \"Add\n
\n\nOnce you visit your web site you will notice in [Plausible](https://plausible.io) dashboard that visitor data is displayed.\n\n## Conclusion\n\nIn this example, we added analytic capabilities to our website without altering the source code. The snippets functionality allows us to enable or disable injected code without any deployment.\n\nHope you found this post useful!\n","navigation":[{"path":"whats-new","text":"Whats New","description":"Discover the latest changes and improvements to Stormkit. Stay up-to-date and get the most out of our platform.","date":"2023-05-28","active":false},{"path":"why-we-are-dropping-support-for-next-js","text":"Why We Are Dropping Support For Next Js","description":"In our continuous pursuit of delivering the best developer experience, we've made a bold decision. We're dropping serverless support for Next.js.","date":"2023-05-21","active":false},{"path":"monitoring-app-using-stormkit-and-supabase","text":"Monitoring App Using Stormkit and Supabase","description":"Learn how to monitor your website's URL status using Stormkit and Supabase. Easy to set up and cost-efficient, this powerful tool can send notifications to Discord, track historical data, and more. Check out the source code now!","date":"2023-01-24","active":false},{"path":"factory-pattern-for-go-tests","text":"Factory Pattern For Go Tests","description":"This article will show you how we improved our Go unit tests worklow using a factory pattern.","date":"2022-11-01","active":false},{"path":"how-to-create-content-site","text":"How To Create Content Site","description":"Learn how to create a website in under 5 minutes with this step-by-step guide.","date":"2022-09-23","active":false},{"path":"migrating-your-app-from-webpack-to-vite","text":"Migrating Your App From Webpack To Vite","description":"Learn how to migrate your app from Webpack to Vite with this quick guide. Discover the configuration options used in Vite and the rationale behind the migration.","date":"2022-08-29","active":false},{"path":"how-to-deploy-on-aws-s3","text":"How To Deploy On Aws S3","description":"Learn how to deploy your static applications on your own AWS account using Stormkit.","date":"2022-04-10","active":false},{"path":"using-analytic-tools-with-stormkit","text":"Using Analytic Tools With Stormkit","description":"Learn how to track user data using Stormkit and Plausible without deploying your application. Inject snippets instantly with this powerful functionality.","date":"2022-04-09","active":true},{"path":"how-to-deploy-to-bunny-cdn","text":"How To Deploy To Bunny Cdn","description":"Learn how to deploy your static applications on your own Bunny CDN account using Stormkit.","date":"2022-04-01","active":false}]}