Logo

dev-resources.site

for different kinds of informations.

Simple Analytics iOS widget with Scriptable app

Published at
2/22/2021
Categories
ios
javascript
widgets
Author
niklasmtj
Categories
3 categories in total
ios
open
javascript
open
widgets
open
Author
9 person written this
niklasmtj
open
Simple Analytics iOS widget with Scriptable app

example widget picture

Today I quickly build an iOS widget to see my page views and visitors on my iPhone. Since I don't always want to start my laptop to see my current website stats in Simple Analytics I created this widget based on an example widget I found in the Scriptable app. The great thing about Scriptable is that uses the JavaScript Core of iOS. This means that a lot of features of ES6 are available to use. You can find a documentation in the Scriptable app or at docs.scriptable.app.
Since it would be very tedious to write code on the small touchscreen, I wrote the code on my laptop and then pasted it on my phone.

Without further ado here are the installation steps.

How to install

  1. Load the scriptable app for your device
  2. Copy the content of the getSimpleAnalyticsStats.js file on GitHub and fill in the first 3 lines of the file with your apiKey, userId and the domain you want to track. You can get your keys in your account settings https://simpleanalytics.com/account
  3. Try to run the script and see if everything works.
  4. Go back to your home screen and trigger the "jiggle-mode"
  5. Now add scriptable and choose your newly created script as the script to run
  6. Have fun with your Simple Analytics iOS widget

The GitHub repository can be found here.

Thank you for reading,
Niklas


This post and more you can find on niklasmtj.de

widgets Article's
30 articles in total
Favicon
Unlocking the Power of Real-Time Forex Data for Algorithmic Trading
Favicon
How Forex Widgets for Website Improve User Engagement
Favicon
Top Free Stock Market Widget for Website Options
Favicon
Check out this new Repository!
Favicon
Flutter provides mainly 2 widgets Stateless and StatefulWidget
Favicon
How many widgets does flutter have?
Favicon
Widgets in flutter
Favicon
Building a Custom Flutter Widget from Scratch
Favicon
Common pitfalls when designing widgets in Flutter
Favicon
How to implement the Slide-to-Act Widget in Flutter
Favicon
10 Creative Ways to Utilize Widget Stacks on Your iPhone
Favicon
Top 10 Widgets Flutter ?
Favicon
Embeddable Widgets to Bring Web3 Experience to Any Website
Favicon
Flutter Project : Building Threads UI Using Flutter
Favicon
flutter container widget example
Favicon
flutter text widget example
Favicon
Updating widgets with Jetpack WorkManager
Favicon
Updating widgets - Introduction
Favicon
Getting started to Android App Widget
Favicon
Top 10 trending github repos for CSS developers in this week๐Ÿ‘ฝ.
Favicon
Flutter Widget Tรผrleri ๐Ÿ’ซ ๐ŸŒŒ โœจ
Favicon
Laravel Nova Metrics
Favicon
How Flutter renders Widgets
Favicon
Getting Started with Flutter Event Calendar in 10 Minutes
Favicon
How to Create a Flutter Range Slider in 10 Minutes
Favicon
Flutter: El marco tendencia para el desarrollo mรณvil
Favicon
Simple Analytics iOS widget with Scriptable app
Favicon
Pain: Embed a widget on a website.
Favicon
Hacking Rainmeter for my setup
Favicon
Google Mail... widget (iOS 14)

Featured ones: