ShareShortcuts
Fork “UsageKit”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so tdevx gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
70K
Saved
1
Actions
170
Category
Utilities
Version
1.0
Language
EN

UsageKit was designed to give you detailed information on not only how you use your Shortcuts, but how frequently you use them.

Caution: This Shortcut is currently in beta, you may experience issues.

Graphics by MediaKit


Features

Low Perfomance Impact

The biggest concern for anybody when it comes to implementing UsageKit will most likely be the impact it has on performance. Due to the way UsageKit works, it will have next to no impact on your performance.

Multi-Device Support

If you use more than once device, UsageKit will only show you statistics for the device you’re currently using.

Simple Design

UsageKit features a simple, data fuelled interface that keeps the important information at your fingertips. When you run UsageKit you will be greeted by a list of supported Shortcuts and the number of times you’ve run it. When you make a selection you will be presented with more detailed information about the statistics that Shortcut is monitoring.


Documentation

Overview

Below you will find detailed instructions on both the basic and advanced implementation of UsageKit. The basic version will only require 4 Actions from you, and the advanced version will use a minimum of 5 Actions. To see this in action, use the DEMO provided.

Note: If you experience any issues or require assistance, don’t hesitate to contact me via Reddit.

Basic Input (required)

The basic implementation of UsageKit only requires 4 Actions, this particular method is only used for 1 input and is required at least once in every Shortcut.

To get started, place a ”Get My Shortcuts Action” and add an ”If Action” after it. Set the If Action input to ”Contains” and enter ”UsageKit” into the Value.

Next, place a ”Text Action” and paste the text from the template below into the box.

First Line: The first line should contain the name of your Shortcut and should match the name that is in your Shortcut Library.

Second Line: Leave this blank.

Third Line: The third line will be the name of the statistic. For example, if your Shortcut is tracking downloads, you would set your statistic name to “Downloads”.

Fourth Line: Leave this blank.

Fifth Line: The fifth line will be used to display your Shortcut satistics and must include “{{NUM}}” (you may place any text around this). For example, if your Shortcut is tracking downloads, your your last line will read {{NUM}} items.

And to finally finish the basic implimention, add a ”Run Shortcut Action” at the end and link it to UsageKit.

Note: It is required that you use the template below at least once near the beginning of your Shortcut. This will be used to calculate the total times you run a Shortcut and is needed for the main menu.

Advanced Input

The advanced implementation of UsageKit requires a minimum 5 Actions, this particular method is only used to send multiple statistics to UsageKit at once.

To get started, place a ”Text Action” and enter the required information (see basic input). Then add a Add to Variable Action”and enter ”UsageKit” into the name (you can repeat this as many times as you like throughout the Shortcut).

Near the end of your Shorcut, place a ”Get My Shortcuts Action” and add an ”If Action” after it. Set the If Action input to ”Contains” and enter ”UsageKit” into the Value.

Finally, add a ”Get Variable Action” linking to the variable we created and place a ”Run Shortcut Action” at the end and link it to UsageKit.

Branding

If you feel UsageKit is the right fit for you and your Shortcuts, you may use the following on your RoutineHub page.

[![UsageKit](https://i.imgur.com/LfJufxJ.png)](https://routinehub.co/shortcut/2114)

What's New

Version 1.0

First release

Version History
1.0 Feb 26, 2019

First release

What it does

170 actions
  1. Comment
    Made by tdevx https://routinehub.co/user/tdevx /u/tdevx @tdevx#6779 RoutineHubUpdate Current Version: "0.1" RoutineHub ID: "2114" RoutineHubUpdate
  2. Comment
    Release Notes: - Initial release
  3. Get Device Details
  4. Dictionary
  5. Set Variable
    shortcut_details
  6. Comment
    --- First Run
  7. Create Folder
  8. Get File
  9. Count
  10. If
  11. Dictionary
  12. Save File
  13. Comment
    --- UpdateHub
  14. Get File
  15. Count
  16. If
  17. Date
  18. Adjust Date
  19. Dictionary
  20. Save File
  21. Get My Shortcuts
  22. Filter Files
  23. Count
  24. If
  25. Show Alert
    UpdateHub is Required
  26. URL
    https://routinehub.co/shortcut/2066
  27. Open URLs
  28. Stop This Shortcut
  29. If
  30. Get File
  31. Date
  32. Get Time Between Dates
  33. If
  34. Text
  35. Run Shortcut
    UpdateHub
  36. If
  37. Stop This Shortcut
  38. Dictionary
  39. Save File
  40. Comment
    --- Log Usage
  41. Get Variable
  42. Count
  43. If
  44. Nothing
  45. If
  46. Get Variable
  47. Repeat with Each
  48. Split Text
  49. Set Variable
    input
  50. Get Item from List
  51. Set Variable
    input_name
  52. Get Variable
  53. Get Item from List
  54. Set Variable
    input_type
  55. Get Variable
  56. Get Item from List
  57. Set Variable
    input_info
  58. Get File
  59. Get Dictionary Value
  60. Count
  61. If
  62. Dictionary
  63. Get Variable
  64. Set Dictionary Value
  65. Save File
  66. If
  67. Get Variable
  68. Get Dictionary Value
  69. Count
  70. If
  71. Dictionary
  72. Get Variable
  73. Set Dictionary Value
  74. Get Variable
  75. Set Dictionary Value
  76. Save File
  77. Get File
  78. Get Dictionary Value
  79. Get Dictionary Value
  80. Get Dictionary Value
  81. Calculate
  82. Dictionary
  83. Get Variable
  84. Set Dictionary Value
  85. Get Variable
  86. Set Dictionary Value
  87. Get Dictionary Value
  88. Get Dictionary Value
  89. Get Dictionary Value
  90. Calculate
  91. Dictionary
  92. Get Variable
  93. Set Dictionary Value
  94. Get Variable
  95. Set Dictionary Value
  96. Save File
  97. Stop This Shortcut
  98. Comment
    --- Times Run
  99. Get File
  100. Get Dictionary Value
  101. Get Dictionary Value
  102. Get Dictionary Value
  103. Calculate
  104. Dictionary
  105. Get Variable
  106. Set Dictionary Value
  107. Get Variable
  108. Set Dictionary Value
  109. Save File
  110. Comment
    --- Header
  111. Get File
  112. Get Dictionary Value
  113. Count
  114. Set Variable
    total_shortcuts
  115. Get Variable
  116. Repeat with Each
  117. Set Variable
    temp_header
  118. Get Variable
  119. Get Dictionary Value
  120. Get Dictionary Value
  121. Get Dictionary Value
  122. Calculate Statistics
  123. Set Variable
    total_runs
  124. Text
  125. Set Variable
    header
  126. Comment
    --- Main Menu
  127. Get File
  128. Set Variable
    shortcuts_usage
  129. Get Dictionary Value
  130. Repeat with Each
  131. Set Variable
    current_shortcut
  132. Get My Shortcuts
  133. Filter Files
  134. Count
  135. If
  136. Nothing
  137. If
  138. Get Variable
  139. Get Images from Input
  140. Resize Image
  141. Base64 Encode
  142. Set Variable
    current_shortcut_image
  143. Get Variable
  144. Get Dictionary Value
  145. Get Dictionary Value
  146. Text
  147. Set Name
  148. Add to Variable
  149. Repeat
  150. Get Variable
  151. Choose from List
  152. Set Variable
    selected_vcf
  153. Get File
  154. Get Dictionary Value
  155. Set Variable
    selected_data
  156. Get Dictionary Value
  157. Repeat with Each
  158. Set Variable
    current_data_name
  159. If
  160. Nothing
  161. If
  162. Get Variable
  163. Get Dictionary Value
  164. Get Dictionary Value
  165. Replace Text
  166. Text
  167. Set Name
  168. Add to Variable
  169. Get Variable
  170. Choose from List

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by tdevx

See All

You Might Also Like

See All
Advertisement