Record snippet usage information

This is a simple Data Blaze space for tracking snippet usage. it includes the email of the person that used the snippet, the snippet id (find the snippet using this URL: Text Blaze | Snippet, Text Expander, works anywhere) and the date and time.

The usage reporting snippets logs the data into the table.
The sample snippet shows how you can import the first snippet into any snippet to log its usage.

Feel free to copy this bundle to Text Blaze and tailor it to your needs.

3 Likes

In continuation of this post, here's the code to also store the website where the snippet is triggered.

I wonder how one would go about capturing what field on the page the snippet was triggered in. Something like this would be especially useful for those using Text Blaze in Salesforce, and other platforms/apps where the same snippet might be triggered in multiple places. I'm gonna tinker with it and see if I can figure it out.

1 Like

is there a way to change the snippet ID to the snippet label?

HI I am trying to create this but instead of copying the snippet ID I would like it to copy the snippet shortcut. Is there a way to change that data log?

Hi @echapman Sorry for the late response.

Here is our {snippet} command reference: Text Blaze | {snippet}

From my snippet, you can replace {snippet: id} with {snippet: shortcut} to get the shortcut of the snippet that was triggered. Let me know if it works for you.

All good! I am not seeing the snippet commands on my list of commands to use.

Thanks for the feedback. Currently, we don't show the {snippet} command in the list of commands. Please type it out manually in the snippet editor to use it.

gotcha. thank that worked

Using this inserts the user email into the snippet and leaves it in the text. Is there a way I can record the user information, snippet and time of use on just the data blaze log?

Hi @kcornick

You can check the snippet shared in an earlier post. It should be logging to a Data Blaze table. Here's the link:

If it does not work for you, please share the snippet you're currently running.

@kcornick I have been doing this for a couple years now and it works extremely well. You'll need to create a User Property for each user. Then you can snag that and have it pushed to your DB table for every snippet run. Like @Gaurang_Tandon said, check out that link he shared and if it does not work/help, post yours here and I bet we can work together to iron it out!

1 Like