Finish the Code and Test It Out

That’s it! Just a simple updateRecord function is all that’s left before testing it out.

After saving your function and workflow rule, find your test record, update the start and end date fields, and watch the URL field update.

Think how useful this is! Now, someone on the front end can merge that Analytics URL field into an email to a client, affiliate, or other partner and quickly send off a pre-filtered, custom link to a live Analytics dashboard.

The use cases, of course, are many and varied. However you might use this, it will certainly add value to your clients and prove your worth to them.

A few other things to think about:

  • It’s possible to set an expiry date for any URL/permalink you create in Analytics
  • You may set a password as well. If you do, don’t forget to share it with your clients!