Jump to content
Server Maintenance This Week. ×

Custom Function to track what layouts are being accessed


This topic is 5218 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Our company has been using FileMaker for at least ten years. Over the years, we have implemented 64 FM files on our server with thousands of layouts. We feel confident that a very large number of those layouts are actually no longer used. However, we don't know which ones.

Each layout has a unique name. Is there any way whatsoever to put some function or script into each Filemaker file that actually tracks each time a particular layout is accessed? This way in a month or two time we could possibly get a good idea of what layouts are being accessed and which ones aren't. This function would need to be able to track layouts that are accessed both by users or scripts.

Link to comment
Share on other sites

You could try adapting BackMagic from SeedCode for this.

Or if you had FileMaker 10 it would be fairly straightforward with script triggers (of course you can trigger scripts on layout load in earlier version using a plugin).

Another method I've seen is to put a tiny web viewer on each layout that hits a Google Analytics page. That's kind of a fun way to go and you get more info with less work.

Link to comment
Share on other sites

Short of a plug-in, it may be impossible to add a layout tracking method without adding something (e.g. layout script trigger, field or web portal) to every one of the thousands of layouts that you want to track.

But if you are able to reliably identify a small set of calculated fields that already appear on each layout, you may be able to redefine them to add the appropriate global script variable assignment in Let() used for tracking.

Edited by Guest
Link to comment
Share on other sites

You could try adapting BackMagic from SeedCode for this.

Or if you had FileMaker 10 it would be fairly straightforward with script triggers (of course you can trigger scripts on layout load in earlier version using a plugin).

Another method I've seen is to put a tiny web viewer on each layout that hits a Google Analytics page. That's kind of a fun way to go and you get more info with less work.

Would your web viewer idea only work if these layouts are accessed through Filemaker Web Service, or would they also work by accessing the layouts from within Filemaker Pro itself?

Link to comment
Share on other sites

It works just fine from within FileMaker. You'd send the layout name as part of the web viewer URL. I believe there was a DevCon session about this a few years ago.

Link to comment
Share on other sites

This topic is 5218 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.